From fdefa387aa538b413c3174514114f3493be5eb29 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 25 Aug 2009 18:24:19 +0200 Subject: [PATCH] widget: remove useless geometry field Signed-off-by: Julien Danjou --- widget.h | 2 -- widgets/graph.c | 1 - widgets/imagebox.c | 1 - widgets/progressbar.c | 1 - widgets/systray.c | 1 - widgets/textbox.c | 1 - 6 files changed, 7 deletions(-) diff --git a/widget.h b/widget.h index 2d6aec5d..4cff2ca7 100644 --- a/widget.h +++ b/widget.h @@ -36,8 +36,6 @@ struct widget_t widget_constructor_t *type; /** Widget destructor */ widget_destructor_t *destructor; - /** Geometry function for drawing */ - area_t (*geometry)(widget_t *, int); /** Extents function */ area_t (*extents)(lua_State *, widget_t *); /** Draw function */ diff --git a/widgets/graph.c b/widgets/graph.c index bad7367c..9ece773d 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -601,7 +601,6 @@ widget_graph(widget_t *w) w->index = luaA_graph_index; w->newindex = luaA_graph_newindex; w->destructor = graph_destructor; - w->geometry = graph_geometry; w->extents = graph_extents; graph_data_t *d = w->data = p_new(graph_data_t, 1); diff --git a/widgets/imagebox.c b/widgets/imagebox.c index ac1fcfe1..24d92c5a 100644 --- a/widgets/imagebox.c +++ b/widgets/imagebox.c @@ -175,7 +175,6 @@ widget_imagebox(widget_t *w) w->index = luaA_imagebox_index; w->newindex = luaA_imagebox_newindex; w->destructor = imagebox_destructor; - w->geometry = imagebox_geometry; w->extents = imagebox_extents; w->data = d = p_new(imagebox_data_t, 1); d->resize = true; diff --git a/widgets/progressbar.c b/widgets/progressbar.c index 605ecd3d..989b8f52 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -656,7 +656,6 @@ widget_progressbar(widget_t *w) w->index = luaA_progressbar_index; w->newindex = luaA_progressbar_newindex; w->destructor = progressbar_destructor; - w->geometry = progressbar_geometry; w->extents = progressbar_extents; progressbar_data_t *d = w->data = p_new(progressbar_data_t, 1); diff --git a/widgets/systray.c b/widgets/systray.c index 6226411f..37535a77 100644 --- a/widgets/systray.c +++ b/widgets/systray.c @@ -110,7 +110,6 @@ widget_t * widget_systray(widget_t *w) { w->draw = systray_draw; - w->geometry = systray_geometry; w->extents = systray_extents; w->destructor = systray_destructor; diff --git a/widgets/textbox.c b/widgets/textbox.c index 74578da6..87ca0adb 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -382,7 +382,6 @@ widget_textbox(widget_t *w) w->index = luaA_textbox_index; w->newindex = luaA_textbox_newindex; w->destructor = textbox_destructor; - w->geometry = textbox_geometry; w->extents = textbox_extents; textbox_data_t *d = w->data = p_new(textbox_data_t, 1);