glarea demo: Add min size to gl area

This commit is contained in:
Timm Bäder 2020-09-29 19:54:50 +02:00 committed by Matthias Clasen
parent 9f574a596f
commit 0dc0b03d6f

View File

@ -406,6 +406,7 @@ create_glarea_window (GtkWidget *do_widget)
gl_area = gtk_gl_area_new (); gl_area = gtk_gl_area_new ();
gtk_widget_set_hexpand (gl_area, TRUE); gtk_widget_set_hexpand (gl_area, TRUE);
gtk_widget_set_vexpand (gl_area, TRUE); gtk_widget_set_vexpand (gl_area, TRUE);
gtk_widget_set_size_request (gl_area, 100, 200);
gtk_box_append (GTK_BOX (box), gl_area); gtk_box_append (GTK_BOX (box), gl_area);
/* We need to initialize and free GL resources, so we use /* We need to initialize and free GL resources, so we use