[gtk/matthiasc/for-master: 4/8] gtk-demo: Set default size for drawingarea demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 4/8] gtk-demo: Set default size for drawingarea demo
- Date: Tue, 10 Nov 2020 01:08:39 +0000 (UTC)
commit 6fa29369564e76047b5177d7d4b3ce6ebbe2b744
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 9 18:50:43 2020 -0500
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.
demos/gtk-demo/drawingarea.c | 1 +
1 file changed, 1 insertion(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]