aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/unix/window.c
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-10-05 01:35:50 +0200
committerStapleButter <thetotalworm@gmail.com>2017-10-05 01:35:50 +0200
commita84caacb03a9803a326ec76e9ab6ab9801807702 (patch)
tree18ccddd04f6f5d77e3accd6001440ac09a305105 /src/libui_sdl/libui/unix/window.c
parentf714c492b972350f97b0c38eca9b6c73d2ddf488 (diff)
make window actually resizable below min size. we lose proper client sizing under GTK tho.
Diffstat (limited to 'src/libui_sdl/libui/unix/window.c')
-rw-r--r--src/libui_sdl/libui/unix/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libui_sdl/libui/unix/window.c b/src/libui_sdl/libui/unix/window.c
index 0fb1ab3..f83325a 100644
--- a/src/libui_sdl/libui/unix/window.c
+++ b/src/libui_sdl/libui/unix/window.c
@@ -309,9 +309,9 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar,
gtk_box_set_homogeneous(GTK_BOX(w->childHolderWidget), TRUE);
gtk_container_add(w->vboxContainer, w->childHolderWidget);
- // set client size proper
- gtk_widget_set_size_request(w->childHolderWidget, width, height);
- gtk_widget_set_size_request(w->childHolderWidget, 1, 1);
+ // TODO: set client size properly
+ // menubar can consume height
+ // gtk_widget_set_size_request() is not good as it sets a minimum size
// show everything in the vbox, but not the GtkWindow itself
gtk_widget_show_all(w->vboxWidget);