diff --git a/hot.c b/hot.c index 735d8a0..47eb512 100644 --- a/hot.c +++ b/hot.c @@ -101,12 +101,6 @@ void create_experimental_tree (GtkBox *experimental_box){ g_signal_connect (factory, "setup", G_CALLBACK(on_experimental_tree_setup_factory), NULL); g_signal_connect (factory, "bind", G_CALLBACK(on_experimental_tree_bind_factory), NULL); - GtkExpander *hello = GTK_EXPANDER (gtk_expander_new ("hello !")); - gtk_expander_set_expanded (GTK_EXPANDER (hello), TRUE); - gtk_widget_set_margin_start (GTK_WIDGET (hello), 0); - g_signal_connect (hello, "activate", G_CALLBACK (on_experimental_expander_toggled), hello); - gtk_box_append (experimental_box, GTK_WIDGET (hello)); - GtkTreeListModel *tree_model = gtk_tree_list_model_new( G_LIST_MODEL (model), FALSE, // Passthrough - False in actual usage with dynamic children retrieval @@ -118,5 +112,12 @@ void create_experimental_tree (GtkBox *experimental_box){ GtkSingleSelection *selection_model = gtk_single_selection_new (G_LIST_MODEL (tree_model)); gtk_single_selection_set_autoselect (selection_model, FALSE); gtk_single_selection_set_can_unselect (selection_model, TRUE); + + GtkWidget *list_view = gtk_list_view_new (GTK_SELECTION_MODEL (selection_model), + GTK_LIST_ITEM_FACTORY (factory)); + + gtk_widget_set_visible(GTK_WIDGET(experimental_box), TRUE); + gtk_widget_set_visible(GTK_WIDGET(list_view), TRUE); + } diff --git a/hot.o b/hot.o index 6471493..c12e329 100644 Binary files a/hot.o and b/hot.o differ diff --git a/myprogram b/myprogram index 9e5030d..ad81fae 100755 Binary files a/myprogram and b/myprogram differ