Fixed a bug in unix/control.c.

This commit is contained in:
Pietro Gagliardi 2015-07-02 07:58:15 -04:00
parent 89445cabfc
commit 31bf280d4f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ static void singleWidgetCommitSetParent(uiControl *c, uiControl *parent)
static void singleWidgetPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height)
{
// use the natural height; it makes more sense
GtkAllocation natural;
GtkRequisition natural;
gtk_widget_get_preferred_size(WIDGET(c), NULL, &natural);
*width = (intmax_t) (natural.width);