[gtk+/parasite2] inspector: Show the default GApplication in the tree
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/parasite2] inspector: Show the default GApplication in the tree
- Date: Fri,  9 May 2014 00:33:59 +0000 (UTC)
commit bde331e12864720cfe4080de2401281cda292100
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 8 20:32:42 2014 -0400
    inspector: Show the default GApplication in the tree
    
    This is a handy object to have quickly available.
 modules/inspector/widget-tree.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/inspector/widget-tree.c b/modules/inspector/widget-tree.c
index 880b4a1..df81096 100644
--- a/modules/inspector/widget-tree.c
+++ b/modules/inspector/widget-tree.c
@@ -279,6 +279,8 @@ gtk_inspector_widget_tree_scan (GtkInspectorWidgetTree *wt,
   gtk_tree_store_clear (wt->priv->model);
   g_hash_table_remove_all (wt->priv->iters);
   gtk_inspector_widget_tree_append_object (wt, G_OBJECT (gtk_settings_get_default ()), NULL, NULL);
+  if (g_application_get_default ())
+    gtk_inspector_widget_tree_append_object (wt, G_OBJECT (g_application_get_default ()), NULL, NULL);
   gtk_inspector_widget_tree_append_object (wt, G_OBJECT (window), NULL, NULL);
 
   gtk_tree_view_columns_autosize (GTK_TREE_VIEW (wt));
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]