From 271206f4ec88669929dc22f93c45a53962f82d35 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Wed, 13 Dec 2023 12:06:42 +0100 Subject: [PATCH] WIP: simplifications gtk-demo/tree_store.c remove: WORLD_COLUMN ? --- demos/gtk-demo/tree_store.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c index 36c5948..6383ab7 100644 --- a/demos/gtk-demo/tree_store.c +++ b/demos/gtk-demo/tree_store.c @@ -52,9 +52,9 @@ enum /* tree data */ static TreeItem item_name_0[] = { - {"A", TRUE, TRUE, TRUE, NULL }, - {"B", FALSE, TRUE, FALSE, NULL }, - {"C", FALSE, TRUE, FALSE, NULL }, + { "A", TRUE, TRUE, TRUE, NULL }, + { "B", FALSE, TRUE, FALSE, NULL }, + { "C", FALSE, TRUE, FALSE, NULL }, { NULL } }; @@ -76,9 +76,9 @@ static TreeItem item_name_2[] = static TreeItem toplevel[] = { - {"IT-0", FALSE, FALSE, FALSE, item_name_0}, - {"IT-1", FALSE, FALSE, FALSE, item_name_1}, - {"IT-2", FALSE, FALSE, FALSE, item_name_2}, + { "IT-0", FALSE, FALSE, FALSE, item_name_0 }, + { "IT-1", FALSE, FALSE, FALSE, item_name_1 }, + { "IT-2", FALSE, FALSE, FALSE, item_name_2 }, { NULL } }; @@ -264,7 +264,7 @@ do_tree_store (GtkWidget *do_widget) /* expand all rows after the treeview widget has been realized */ g_signal_connect (treeview, "realize", G_CALLBACK (gtk_tree_view_expand_all), NULL); - gtk_window_set_default_size (GTK_WINDOW (window), 650, 400); + gtk_window_set_default_size (GTK_WINDOW (window), 200, 350); } if (!gtk_widget_get_visible (window))