Bon. Rien de visible. Réfléchissons.
This commit is contained in:
parent
64e1948351
commit
2af51060e7
13
hot.c
13
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, "setup", G_CALLBACK(on_experimental_tree_setup_factory), NULL);
|
||||||
g_signal_connect (factory, "bind", G_CALLBACK(on_experimental_tree_bind_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(
|
GtkTreeListModel *tree_model = gtk_tree_list_model_new(
|
||||||
G_LIST_MODEL (model),
|
G_LIST_MODEL (model),
|
||||||
FALSE, // Passthrough - False in actual usage with dynamic children retrieval
|
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));
|
GtkSingleSelection *selection_model = gtk_single_selection_new (G_LIST_MODEL (tree_model));
|
||||||
gtk_single_selection_set_autoselect (selection_model, FALSE);
|
gtk_single_selection_set_autoselect (selection_model, FALSE);
|
||||||
gtk_single_selection_set_can_unselect (selection_model, TRUE);
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue