inspector: Fix expander arrow node names

They vanished after the GtkExpander node rename
This commit is contained in:
Timm Bäder 2019-10-20 16:34:24 +02:00
parent 6b07ce2b13
commit 44137574a1
2 changed files with 4 additions and 4 deletions

View File

@ -1053,13 +1053,13 @@ gtk_inspector_object_tree_create_list_widget (gpointer row_item,
GtkWidget *title, *arrow;
child = g_object_new (GTK_TYPE_BOX, "css-name", "expander", NULL);
title = g_object_new (GTK_TYPE_TOGGLE_BUTTON, "css-name", "title", NULL);
gtk_button_set_relief (GTK_BUTTON (title), GTK_RELIEF_NONE);
g_object_bind_property (row_item, "expanded", title, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (child), title);
arrow = gtk_icon_new ("arrow");
arrow = gtk_icon_new ("expander");
gtk_container_add (GTK_CONTAINER (title), arrow);
}
else

View File

@ -322,14 +322,14 @@ create_widget_for_render_node (gpointer row_item,
GtkWidget *title, *arrow;
child = g_object_new (GTK_TYPE_BOX, "css-name", "expander", NULL);
title = g_object_new (GTK_TYPE_TOGGLE_BUTTON, "css-name", "title", NULL);
gtk_button_set_relief (GTK_BUTTON (title), GTK_RELIEF_NONE);
g_object_bind_property (row_item, "expanded", title, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (child), title);
g_object_set_data_full (G_OBJECT (row), "make-sure-its-not-unreffed", g_object_ref (row_item), g_object_unref);
arrow = gtk_icon_new ("arrow");
arrow = gtk_icon_new ("expander");
gtk_container_add (GTK_CONTAINER (title), arrow);
}
else