widget: remove useless geometry field
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5f43d178f7
commit
fdefa387aa
2
widget.h
2
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 */
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue