hook up Resize event

This commit is contained in:
StapleButter 2017-10-03 00:51:56 +02:00
parent 7f05bf24ad
commit 5450c7cc3d
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,8 @@ static void areaWidget_size_allocate(GtkWidget *w, GtkAllocation *allocation)
if (!a->scrolling)
// we must redraw everything on resize because Windows requires it
gtk_widget_queue_resize(w);
a->ah->Resize(a->ah, a, allocation->width, allocation->height);
}
static void loadAreaSize(uiArea *a, double *width, double *height)
@ -153,6 +155,8 @@ static void areaWidget_get_preferred_height(GtkWidget *w, gint *min, gint *nat)
*min = a->scrollHeight;
*nat = a->scrollHeight;
}
// TODO: min size
}
static void areaWidget_get_preferred_width(GtkWidget *w, gint *min, gint *nat)