make window actually resizable below min size. we lose proper client sizing under GTK tho.

This commit is contained in:
StapleButter 2017-10-05 01:35:50 +02:00
parent f714c492b9
commit a84caacb03
1 changed files with 3 additions and 3 deletions

View File

@ -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_box_set_homogeneous(GTK_BOX(w->childHolderWidget), TRUE);
gtk_container_add(w->vboxContainer, w->childHolderWidget); gtk_container_add(w->vboxContainer, w->childHolderWidget);
// set client size proper // TODO: set client size properly
gtk_widget_set_size_request(w->childHolderWidget, width, height); // menubar can consume height
gtk_widget_set_size_request(w->childHolderWidget, 1, 1); // gtk_widget_set_size_request() is not good as it sets a minimum size
// show everything in the vbox, but not the GtkWindow itself // show everything in the vbox, but not the GtkWindow itself
gtk_widget_show_all(w->vboxWidget); gtk_widget_show_all(w->vboxWidget);