WIP: learning menu > prints item label when expander is toggled
This commit is contained in:
parent
db24cf601b
commit
e876479810
|
@ -84,8 +84,10 @@ static void on_user_menu_expander_toggled (GtkExpander *expander,
|
||||||
{
|
{
|
||||||
GtkTreeListRow *row = GTK_TREE_LIST_ROW (user_data);
|
GtkTreeListRow *row = GTK_TREE_LIST_ROW (user_data);
|
||||||
gboolean is_expanded = gtk_tree_list_row_get_expanded (row);
|
gboolean is_expanded = gtk_tree_list_row_get_expanded (row);
|
||||||
gtk_tree_list_row_set_expanded (row,
|
gtk_tree_list_row_set_expanded (row, ! is_expanded);
|
||||||
! 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue