[gtk: 28/72] glarea demo: Add min size to gl area




commit 0dc0b03d6f10f413d3d659e59ac7a2fb25a823c4
Author: Timm Bäder <mail baedert org>
Date:   Tue Sep 29 19:54:50 2020 +0200

    glarea demo: Add min size to gl area

 demos/gtk-demo/glarea.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/demos/gtk-demo/glarea.c b/demos/gtk-demo/glarea.c
index 5c2fb898c3..428d9fdaae 100644
--- a/demos/gtk-demo/glarea.c
+++ b/demos/gtk-demo/glarea.c
@@ -406,6 +406,7 @@ create_glarea_window (GtkWidget *do_widget)
   gl_area = gtk_gl_area_new ();
   gtk_widget_set_hexpand (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);
 
   /* We need to initialize and free GL resources, so we use


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]