[mojosetup] Expand the GTK 3 license area to use the available space.

Francois Gouget fgouget at codeweavers.com
Wed Aug 12 09:02:50 EDT 2020


GTK 2 seems to do it by default but GTK 3 requires explicit calls in
order for it to scale with the window size.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 gui_gtkplus3.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gui_gtkplus3.c b/gui_gtkplus3.c
index 9c482f3..6155b0b 100644
--- a/gui_gtkplus3.c
+++ b/gui_gtkplus3.c
@@ -464,6 +464,8 @@ static GtkWidget *create_gtkwindow(const char *title,
     gtk_widget_set_size_request(notebook,
                                 (gint) (((float) gdk_screen_width()) * 0.4),
                                 (gint) (((float) gdk_screen_height()) * 0.4));
+    gtk_widget_set_vexpand(notebook, TRUE);
+    gtk_widget_set_hexpand(notebook, TRUE);
 
     widget = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
     gtk_widget_show(widget);
-- 
2.20.1



More information about the mojosetup mailing list