[gtk] inspector: Fix expander arrow node names
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] inspector: Fix expander arrow node names
- Date: Tue, 22 Oct 2019 07:54:50 +0000 (UTC)
commit 44137574a191dc6994b66e66be0b25f4fa2ff207
Author: Timm Bäder <mail baedert org>
Date: Sun Oct 20 16:34:24 2019 +0200
inspector: Fix expander arrow node names
They vanished after the GtkExpander node rename
gtk/inspector/object-tree.c | 4 ++--
gtk/inspector/recorder.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/inspector/object-tree.c b/gtk/inspector/object-tree.c
index 66af2c2fdb..816ce5ea73 100644
--- a/gtk/inspector/object-tree.c
+++ b/gtk/inspector/object-tree.c
@@ -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
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 862154dc69..2ed3649edb 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]