[gtk+] inspector: Cosmetic fixes



commit 326f0aad5d0bd1c6591d07d3a84bf1521e880a44
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 10 23:25:07 2014 -0400

    inspector: Cosmetic fixes
    
    Expand the resource list initially.

 gtk/inspector/resource-list.c  |    3 +++
 gtk/inspector/resource-list.ui |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/resource-list.c b/gtk/inspector/resource-list.c
index 756c82e..928a8d5 100644
--- a/gtk/inspector/resource-list.c
+++ b/gtk/inspector/resource-list.c
@@ -46,6 +46,7 @@ struct _GtkInspectorResourceListPrivate
   GtkWidget *size_label;
   GtkWidget *info_grid;
   GtkWidget *stack;
+  GtkWidget *tree;
   GtkTreeViewColumn *count_column;
   GtkCellRenderer *count_renderer;
   GtkTreeViewColumn *size_column;
@@ -268,6 +269,7 @@ on_map (GtkWidget *widget)
 {
   GtkInspectorResourceList *sl = GTK_INSPECTOR_RESOURCE_LIST (widget);
 
+  gtk_tree_view_expand_all (GTK_TREE_VIEW (sl->priv->tree));
   gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "list");
 }
 
@@ -306,6 +308,7 @@ gtk_inspector_resource_list_class_init (GtkInspectorResourceListClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, size_column);
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, size_renderer);
   gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, stack);
+  gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorResourceList, tree);
 
   gtk_widget_class_bind_template_callback (widget_class, row_activated);
   gtk_widget_class_bind_template_callback (widget_class, close_details);
diff --git a/gtk/inspector/resource-list.ui b/gtk/inspector/resource-list.ui
index 823ae97..e7eefce 100644
--- a/gtk/inspector/resource-list.ui
+++ b/gtk/inspector/resource-list.ui
@@ -25,7 +25,7 @@
             <property name="vscrollbar-policy">always</property>
             <property name="shadow-type">in</property>
             <child>
-              <object class="GtkTreeView">
+              <object class="GtkTreeView" id="tree">
                 <property name="visible">True</property>
                 <property name="model">model</property>
                 <property name="activate-on-single-click">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]