From e8764798109a8be1957acee966993a6124926dd2 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sat, 13 Jul 2024 08:11:41 +0200 Subject: [PATCH] WIP: learning menu > prints item label when expander is toggled --- src/calls.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calls.c b/src/calls.c index 67eeb09..668364f 100644 --- a/src/calls.c +++ b/src/calls.c @@ -84,8 +84,10 @@ static void on_user_menu_expander_toggled (GtkExpander *expander, { GtkTreeListRow *row = GTK_TREE_LIST_ROW (user_data); gboolean is_expanded = gtk_tree_list_row_get_expanded (row); - gtk_tree_list_row_set_expanded (row, - ! is_expanded); + gtk_tree_list_row_set_expanded (row, ! is_expanded); + const gchar *text = gtk_string_object_get_string ( + GTK_STRING_OBJECT (gtk_tree_list_row_get_item (row))); + if (1) printf("[on_user_menu_expander_toggled] > %s\n", text); }