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.
This commit is contained in:
Matthias Clasen 2020-11-09 18:50:43 -05:00
parent b81463e7d3
commit 6fa2936956

View File

@ -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);