WIP: learning menu > prints item label when expander is toggled

This commit is contained in:
Jean Sirmai 2024-07-13 08:11:41 +02:00
parent db24cf601b
commit e876479810
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 4 additions and 2 deletions

View File

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