[gtk+] inspector: Cosmetic changes to the hierarchy tab
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Cosmetic changes to the hierarchy tab
- Date: Wed, 28 Oct 2015 04:41:46 +0000 (UTC)
commit 37eb5c08a4a24792b5e0c71644c70eb5a38c16c1
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 28 00:41:13 2015 -0400
inspector: Cosmetic changes to the hierarchy tab
Put the interfaces below GInterface.
gtk/inspector/object-hierarchy.c | 10 +++++++++-
gtk/inspector/object-hierarchy.ui | 2 +-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/object-hierarchy.c b/gtk/inspector/object-hierarchy.c
index 9c91c8b..94e0063 100644
--- a/gtk/inspector/object-hierarchy.c
+++ b/gtk/inspector/object-hierarchy.c
@@ -99,10 +99,18 @@ gtk_inspector_object_hierarchy_set_object (GtkInspectorObjectHierarchy *oh,
}
while ((type = g_type_parent (type)));
+ if (g_hash_table_size (interfaces) > 0)
+ {
+ gtk_tree_store_append (oh->priv->model, &iter, NULL);
+ gtk_tree_store_set (oh->priv->model, &iter,
+ COLUMN_OBJECT_NAME, "GInterface",
+ -1);
+ parent = iter;
+ }
g_hash_table_iter_init (&hit, interfaces);
while (g_hash_table_iter_next (&hit, (gpointer *)&class_name, NULL))
{
- gtk_tree_store_append (oh->priv->model, &iter, NULL);
+ gtk_tree_store_append (oh->priv->model, &iter, &parent);
gtk_tree_store_set (oh->priv->model, &iter,
COLUMN_OBJECT_NAME, class_name,
-1);
diff --git a/gtk/inspector/object-hierarchy.ui b/gtk/inspector/object-hierarchy.ui
index d8a99cc..5240d7b 100644
--- a/gtk/inspector/object-hierarchy.ui
+++ b/gtk/inspector/object-hierarchy.ui
@@ -29,7 +29,7 @@
<property name="enable-search">False</property>
<child>
<object class="GtkTreeViewColumn">
- <property name="title" translatable="yes">Object Hierarchy</property>
+ <property name="title" translatable="yes">Class Hierarchy</property>
<child>
<object class="GtkCellRendererText">
<property name="scale">0.8</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]