diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c index 5651d7e..aa4f0ba 100644 --- a/demos/gtk-demo/tree_store.c +++ b/demos/gtk-demo/tree_store.c @@ -32,22 +32,7 @@ /*************************************************************************************************************************************/ -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - -/******************************** S O M E L I T T L E T H I N G S T O K N O W **********************************/ -/* */ -/* gtk_tree_view_set_show_expanders (GTK_TREE_VIEW (treeview), TRUE); */ -/* gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), TRUE); */ -/* gtk_widget_set_vexpand (treeview, TRUE); */ -/* gtk_tree_view_set_reorderable (GTK_TREE_VIEW (treeview), TRUE); */ -/* */ -/*************************************************************************************************************************************/ - - -/* The GtkTreeStore is used to store data in tree form, to be used later on by a GtkTreeView to display it. - * This demo builds a simple GtkTreeStore and displays it. - * If you're new to the GtkTreeView widgets and associates, look into the GtkListStore example first. */ +/* The GtkTreeStore is used to store data in tree form, to be used later on by a GtkTreeView to display it */ #include @@ -81,6 +66,7 @@ static TreeItem A[] = {{"D", D}, {NULL}}, B[] = {{"E", E}, {NULL}}; static TreeItem R[] = {{"A", A}, {"B", B}, {"C", C}, {NULL}}; static TreeItem O[] = {{"ROOT", R}, {NULL}}; // Artefact added for symmetry + static GtkTreeModel *create_node_recursive (GtkTreeStore *model, TreeItem *current_item, GtkTreeIter *iter_parent, @@ -110,6 +96,7 @@ static GtkTreeModel *create_node_recursive (GtkTreeStore *model, return NULL; } + GtkWidget * do_tree_store (GtkWidget *do_widget) {