diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-11-09 18:50:43 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-11-09 18:50:43 -0500 |
commit | 6fa29369564e76047b5177d7d4b3ce6ebbe2b744 (patch) | |
tree | 41e5fc5a9288b0ca88c3d7235b548c7b06c75e39 | |
parent | b81463e7d34ae2d4cb810927990f3364bc49a9a2 (diff) | |
download | gtk+-6fa29369564e76047b5177d7d4b3ce6ebbe2b744.tar.gz |
gtk-demo: Set default size for drawingarea demo
Set a default size, so we don't ellipsize the window
title when the window is presented.
-rw-r--r-- | demos/gtk-demo/drawingarea.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c index 39254c67f5..68d4aee9e8 100644 --- a/demos/gtk-demo/drawingarea.c +++ b/demos/gtk-demo/drawingarea.c @@ -311,6 +311,7 @@ do_drawingarea (GtkWidget *do_widget) gtk_window_set_display (GTK_WINDOW (window), gtk_widget_get_display (do_widget)); gtk_window_set_title (GTK_WINDOW (window), "Drawing Area"); + gtk_window_set_default_size (GTK_WINDOW (window), 250, -1); g_signal_connect (window, "destroy", G_CALLBACK (close_window), NULL); |