From d7850e8be00f39fbc690bc2efb85633698296ee0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 3 Aug 2014 01:28:23 +0200 Subject: [PATCH] inspector: Add GtkTreeSelection to the object tree It is not accessible, otherwise. --- gtk/inspector/widget-tree.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/inspector/widget-tree.c b/gtk/inspector/widget-tree.c index 275cc45e7e..1de80c859a 100644 --- a/gtk/inspector/widget-tree.c +++ b/gtk/inspector/widget-tree.c @@ -377,6 +377,10 @@ gtk_inspector_widget_tree_append_object (GtkInspectorWidgetTree *wt, if (child) gtk_inspector_widget_tree_append_object (wt, child, &iter, "model"); + child = G_OBJECT (gtk_tree_view_get_selection (GTK_TREE_VIEW (object))); + if (child) + gtk_inspector_widget_tree_append_object (wt, child, &iter, "selection"); + n_columns = gtk_tree_view_get_n_columns (GTK_TREE_VIEW (object)); for (i = 0; i < n_columns; i++) {