[gtk+] inspector: Add GtkTreeSelection to the object tree
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Add GtkTreeSelection to the object tree
- Date: Sat, 2 Aug 2014 23:28:51 +0000 (UTC)
commit d7850e8be00f39fbc690bc2efb85633698296ee0
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 3 01:28:23 2014 +0200
inspector: Add GtkTreeSelection to the object tree
It is not accessible, otherwise.
gtk/inspector/widget-tree.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/widget-tree.c b/gtk/inspector/widget-tree.c
index 275cc45..1de80c8 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++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]