summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-08 20:32:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-10 22:04:26 -0400
commit8a6421ac30b6455597e9398bef8cf040f8778db8 (patch)
treedc5c43ad652b2b4d5de78d01a002943d785dc7f8 /modules
parent83503cbf2062076485822e57616923aa92f6d529 (diff)
downloadgtk+-8a6421ac30b6455597e9398bef8cf040f8778db8.tar.gz
inspector: Show the default GApplication in the tree
This is a handy object to have quickly available.
Diffstat (limited to 'modules')
-rw-r--r--modules/inspector/widget-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/inspector/widget-tree.c b/modules/inspector/widget-tree.c
index 880b4a19ca..df81096907 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));