WIP: simplifications gtk-demo/tree_store.c remove: WORLD_COLUMN ?
This commit is contained in:
parent
0c2f313a3b
commit
271206f4ec
|
@ -52,9 +52,9 @@ enum
|
||||||
/* tree data */
|
/* tree data */
|
||||||
static TreeItem item_name_0[] =
|
static TreeItem item_name_0[] =
|
||||||
{
|
{
|
||||||
{"A", TRUE, TRUE, TRUE, NULL },
|
{ "A", TRUE, TRUE, TRUE, NULL },
|
||||||
{"B", FALSE, TRUE, FALSE, NULL },
|
{ "B", FALSE, TRUE, FALSE, NULL },
|
||||||
{"C", FALSE, TRUE, FALSE, NULL },
|
{ "C", FALSE, TRUE, FALSE, NULL },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -76,9 +76,9 @@ static TreeItem item_name_2[] =
|
||||||
|
|
||||||
static TreeItem toplevel[] =
|
static TreeItem toplevel[] =
|
||||||
{
|
{
|
||||||
{"IT-0", FALSE, FALSE, FALSE, item_name_0},
|
{ "IT-0", FALSE, FALSE, FALSE, item_name_0 },
|
||||||
{"IT-1", FALSE, FALSE, FALSE, item_name_1},
|
{ "IT-1", FALSE, FALSE, FALSE, item_name_1 },
|
||||||
{"IT-2", FALSE, FALSE, FALSE, item_name_2},
|
{ "IT-2", FALSE, FALSE, FALSE, item_name_2 },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ do_tree_store (GtkWidget *do_widget)
|
||||||
/* expand all rows after the treeview widget has been realized */
|
/* expand all rows after the treeview widget has been realized */
|
||||||
g_signal_connect (treeview, "realize",
|
g_signal_connect (treeview, "realize",
|
||||||
G_CALLBACK (gtk_tree_view_expand_all), NULL);
|
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))
|
if (!gtk_widget_get_visible (window))
|
||||||
|
|
Loading…
Reference in New Issue