Make WMCreateCommandButton into a proper function instead of a macro. #20
@@ -1039,11 +1039,7 @@ void WMCloseWindow(WMWindow *win);
|
||||
|
||||
void WMSetButtonAction(WMButton *bPtr, WMAction *action, void *clientData);
|
||||
|
||||
#define WMCreateCommandButton(parent) \
|
||||
WMCreateCustomButton((parent), WBBSpringLoadedMask\
|
||||
|WBBPushInMask\
|
||||
|WBBPushLightMask\
|
||||
|WBBPushChangeMask)
|
||||
WMButton* WMCreateCommandButton(WMWidget *parent);
|
||||
|
||||
#define WMCreateRadioButton(parent) \
|
||||
WMCreateButton((parent), WBTRadio)
|
||||
|
||||
@@ -216,6 +216,14 @@ WMButton *WMCreateButton(WMWidget * parent, WMButtonType type)
|
||||
return bPtr;
|
||||
}
|
||||
|
||||
WMButton *WMCreateCommandButton(WMWidget *parent)
|
||||
{
|
||||
return WMCreateCustomButton(
|
||||
parent,
|
||||
WBBSpringLoadedMask|WBBPushInMask|WBBPushLightMask|WBBPushChangeMask
|
||||
);
|
||||
}
|
||||
|
||||
static void updateDisabledMask(WMButton * bPtr)
|
||||
{
|
||||
WMScreen *scr = WMWidgetScreen(bPtr);
|
||||
|
||||
Reference in New Issue
Block a user