WIP: simplifications gtk-demo/tree_store.c remove: WORLD_COLUMN ?

This commit is contained in:
Jean Sirmai 2023-12-13 12:06:42 +01:00
parent 0c2f313a3b
commit 271206f4ec
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 7 additions and 7 deletions

View File

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