Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
void
widget_set_size(struct widget *widget, int32_t width, int32_t height)
{
- struct window *window = widget->window;
-
widget->allocation.width = width;
widget->allocation.height = height;
}
{
widget->allocation.x = x;
widget->allocation.y = y;
- widget->allocation.width = width;
- widget->allocation.height = height;
+ widget_set_size(widget, width, height);
}
void *