textbox: merge geometry and extents function
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
59a0f7e34b
commit
6922df8b46
|
@ -55,7 +55,7 @@ typedef struct
|
|||
} textbox_data_t;
|
||||
|
||||
static area_t
|
||||
textbox_geometry(widget_t *widget, int screen)
|
||||
textbox_extents(lua_State *L, widget_t *widget)
|
||||
{
|
||||
textbox_data_t *d = widget->data;
|
||||
area_t geometry = d->extents;
|
||||
|
@ -75,12 +75,6 @@ textbox_geometry(widget_t *widget, int screen)
|
|||
return geometry;
|
||||
}
|
||||
|
||||
static area_t
|
||||
textbox_extents(lua_State *L, widget_t *widget)
|
||||
{
|
||||
return textbox_geometry(widget, 0);
|
||||
}
|
||||
|
||||
/** Draw a textbox widget.
|
||||
* \param widget The widget.
|
||||
* \param ctx The draw context.
|
||||
|
|
Loading…
Reference in New Issue