From e9f147a60a6c19cfb3b1d0de4d76b38f431868a5 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Wed, 24 Jan 2024 10:24:56 +0100 Subject: [PATCH] WIP: static void on_activating_this_expander (GtkExpander *my_expander, gpointer my_data){} --- src/ui/sand_box.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/sand_box.c b/src/ui/sand_box.c index 1a6ca1f..66ecc36 100644 --- a/src/ui/sand_box.c +++ b/src/ui/sand_box.c @@ -136,6 +136,9 @@ setup_tree (void) } +static void on_activating_this_expander (GtkExpander *my_expander, gpointer my_data){} + + // ------------- End Matthias Clasen -------------------------------------- enum { COLUMN_DESCRIPTION }; @@ -191,7 +194,9 @@ static void and_now_let_s_climb_that_tree (GtkWidget *in_that_box) gtk_tree_view_append_column (GTK_TREE_VIEW (my_tree_view), my_column); gtk_tree_store_set (my_list_store, &child_iter, my_column, "two", -1); GtkWidget *my_expander = gtk_expander_new ("my_expander"); - printf("%s\n", gtk_expander_get_label (my_expander)); + gtk_expander_set_child (my_expander, NULL); // *child); how to ? + on_activating_this_expander (my_expander, NULL); // gpointer user_data) The “activate” signal + printf("%s\n", gtk_expander_get_label (my_expander)); // < OK // GtkWidget my_column = *gtk_column_view_new (my_selection_model); /* GtkWidget *treeview; */