From 86dd924881dde4c4746724547696a93ed631aeb0 Mon Sep 17 00:00:00 2001 From: Freddie Witherden Date: Mon, 14 Jul 2008 23:19:51 +0000 Subject: [PATCH] Minor cosmetic improvements to betawidget. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5554 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/betawidget/widget.c | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/lib/betawidget/widget.c b/lib/betawidget/widget.c index 6d8174b5c..c306b28c5 100644 --- a/lib/betawidget/widget.c +++ b/lib/betawidget/widget.c @@ -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));