diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-10-03 00:51:56 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-10-03 00:51:56 +0200 |
commit | 5450c7cc3ded21b2ffe83210ec0584e5bec7bf93 (patch) | |
tree | c789a8d2460ca9d0bc4740f2d4a1c431e535d6c2 /src/libui_sdl | |
parent | 7f05bf24ada9442bfcd4c9b10e44790d2319d629 (diff) |
hook up Resize event
Diffstat (limited to 'src/libui_sdl')
-rw-r--r-- | src/libui_sdl/libui/unix/area.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libui_sdl/libui/unix/area.c b/src/libui_sdl/libui/unix/area.c index bde907a..c28f2c3 100644 --- a/src/libui_sdl/libui/unix/area.c +++ b/src/libui_sdl/libui/unix/area.c @@ -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) |