widget: remove useless geometry field

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-25 18:24:19 +02:00
parent 5f43d178f7
commit fdefa387aa
6 changed files with 0 additions and 7 deletions

View File

@ -36,8 +36,6 @@ struct widget_t
widget_constructor_t *type; widget_constructor_t *type;
/** Widget destructor */ /** Widget destructor */
widget_destructor_t *destructor; widget_destructor_t *destructor;
/** Geometry function for drawing */
area_t (*geometry)(widget_t *, int);
/** Extents function */ /** Extents function */
area_t (*extents)(lua_State *, widget_t *); area_t (*extents)(lua_State *, widget_t *);
/** Draw function */ /** Draw function */

View File

@ -601,7 +601,6 @@ widget_graph(widget_t *w)
w->index = luaA_graph_index; w->index = luaA_graph_index;
w->newindex = luaA_graph_newindex; w->newindex = luaA_graph_newindex;
w->destructor = graph_destructor; w->destructor = graph_destructor;
w->geometry = graph_geometry;
w->extents = graph_extents; w->extents = graph_extents;
graph_data_t *d = w->data = p_new(graph_data_t, 1); graph_data_t *d = w->data = p_new(graph_data_t, 1);

View File

@ -175,7 +175,6 @@ widget_imagebox(widget_t *w)
w->index = luaA_imagebox_index; w->index = luaA_imagebox_index;
w->newindex = luaA_imagebox_newindex; w->newindex = luaA_imagebox_newindex;
w->destructor = imagebox_destructor; w->destructor = imagebox_destructor;
w->geometry = imagebox_geometry;
w->extents = imagebox_extents; w->extents = imagebox_extents;
w->data = d = p_new(imagebox_data_t, 1); w->data = d = p_new(imagebox_data_t, 1);
d->resize = true; d->resize = true;

View File

@ -656,7 +656,6 @@ widget_progressbar(widget_t *w)
w->index = luaA_progressbar_index; w->index = luaA_progressbar_index;
w->newindex = luaA_progressbar_newindex; w->newindex = luaA_progressbar_newindex;
w->destructor = progressbar_destructor; w->destructor = progressbar_destructor;
w->geometry = progressbar_geometry;
w->extents = progressbar_extents; w->extents = progressbar_extents;
progressbar_data_t *d = w->data = p_new(progressbar_data_t, 1); progressbar_data_t *d = w->data = p_new(progressbar_data_t, 1);

View File

@ -110,7 +110,6 @@ widget_t *
widget_systray(widget_t *w) widget_systray(widget_t *w)
{ {
w->draw = systray_draw; w->draw = systray_draw;
w->geometry = systray_geometry;
w->extents = systray_extents; w->extents = systray_extents;
w->destructor = systray_destructor; w->destructor = systray_destructor;

View File

@ -382,7 +382,6 @@ widget_textbox(widget_t *w)
w->index = luaA_textbox_index; w->index = luaA_textbox_index;
w->newindex = luaA_textbox_newindex; w->newindex = luaA_textbox_newindex;
w->destructor = textbox_destructor; w->destructor = textbox_destructor;
w->geometry = textbox_geometry;
w->extents = textbox_extents; w->extents = textbox_extents;
textbox_data_t *d = w->data = p_new(textbox_data_t, 1); textbox_data_t *d = w->data = p_new(textbox_data_t, 1);