Bon. Rien de visible. Réfléchissons.

This commit is contained in:
Jean Sirmai 2024-05-16 17:40:03 +02:00
parent 64e1948351
commit 2af51060e7
Signed by: jean
GPG Key ID: FB3115C340E057E3
3 changed files with 7 additions and 6 deletions

13
hot.c
View File

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

BIN
hot.o

Binary file not shown.

BIN
myprogram

Binary file not shown.