Minor cosmetic improvements to betawidget.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5554 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
d7a0c2fa9b
commit
86dd924881
|
@ -117,32 +117,32 @@ static void widgetInitVtbl(widget *self)
|
|||
|
||||
if (!initialised)
|
||||
{
|
||||
vtbl.addChild = widgetAddChildImpl;
|
||||
vtbl.removeChild = widgetRemoveChildImpl;
|
||||
vtbl.addChild = widgetAddChildImpl;
|
||||
vtbl.removeChild = widgetRemoveChildImpl;
|
||||
|
||||
vtbl.fireCallbacks = widgetFireCallbacksImpl;
|
||||
vtbl.addEventHandler = widgetAddEventHandlerImpl;
|
||||
vtbl.removeEventHandler = widgetRemoveEventHandlerImpl;
|
||||
vtbl.handleEvent = widgetHandleEventImpl;
|
||||
vtbl.fireCallbacks = widgetFireCallbacksImpl;
|
||||
vtbl.addEventHandler = widgetAddEventHandlerImpl;
|
||||
vtbl.removeEventHandler = widgetRemoveEventHandlerImpl;
|
||||
vtbl.handleEvent = widgetHandleEventImpl;
|
||||
|
||||
vtbl.focus = widgetFocusImpl;
|
||||
vtbl.blur = widgetBlurImpl;
|
||||
vtbl.focus = widgetFocusImpl;
|
||||
vtbl.blur = widgetBlurImpl;
|
||||
|
||||
vtbl.enable = widgetEnableImpl;
|
||||
vtbl.disable = widgetDisableImpl;
|
||||
vtbl.enable = widgetEnableImpl;
|
||||
vtbl.disable = widgetDisableImpl;
|
||||
|
||||
vtbl.getMinSize = NULL;
|
||||
vtbl.getMaxSize = NULL;
|
||||
vtbl.getMinSize = NULL;
|
||||
vtbl.getMaxSize = NULL;
|
||||
|
||||
vtbl.resize = widgetResizeImpl;
|
||||
vtbl.resize = widgetResizeImpl;
|
||||
|
||||
vtbl.composite = widgetCompositeImpl;
|
||||
vtbl.composite = widgetCompositeImpl;
|
||||
|
||||
vtbl.doLayout = NULL;
|
||||
vtbl.doDraw = NULL;
|
||||
vtbl.doDrawMask = NULL;
|
||||
vtbl.doLayout = NULL;
|
||||
vtbl.doDraw = NULL;
|
||||
vtbl.doDrawMask = NULL;
|
||||
|
||||
vtbl.destroy = widgetDestroyImpl;
|
||||
vtbl.destroy = widgetDestroyImpl;
|
||||
|
||||
initialised = true;
|
||||
}
|
||||
|
@ -417,7 +417,8 @@ void widgetRemoveChildImpl(widget *self, widget *child)
|
|||
/*
|
||||
*
|
||||
*/
|
||||
int widgetAddEventHandlerImpl(widget *self, eventType type, callback handler, void *userData)
|
||||
int widgetAddEventHandlerImpl(widget *self, eventType type, callback handler,
|
||||
void *userData)
|
||||
{
|
||||
eventTableEntry *entry = malloc(sizeof(eventTableEntry));
|
||||
|
||||
|
|
Loading…
Reference in New Issue