inspector: Cosmetic changes to the hierarchy tab

Put the interfaces below GInterface.
This commit is contained in:
Matthias Clasen 2015-10-28 00:41:13 -04:00
parent 3869bdbc2b
commit 37eb5c08a4
2 changed files with 10 additions and 2 deletions

View File

@ -99,10 +99,18 @@ gtk_inspector_object_hierarchy_set_object (GtkInspectorObjectHierarchy *oh,
} }
while ((type = g_type_parent (type))); 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); g_hash_table_iter_init (&hit, interfaces);
while (g_hash_table_iter_next (&hit, (gpointer *)&class_name, NULL)) 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, gtk_tree_store_set (oh->priv->model, &iter,
COLUMN_OBJECT_NAME, class_name, COLUMN_OBJECT_NAME, class_name,
-1); -1);

View File

@ -29,7 +29,7 @@
<property name="enable-search">False</property> <property name="enable-search">False</property>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Object Hierarchy</property> <property name="title" translatable="yes">Class Hierarchy</property>
<child> <child>
<object class="GtkCellRendererText"> <object class="GtkCellRendererText">
<property name="scale">0.8</property> <property name="scale">0.8</property>