[gtk+] inspector: Add combobox popups to the tree
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Add combobox popups to the tree
- Date: Tue, 10 Jun 2014 12:54:33 +0000 (UTC)
commit b0c6263f6c8b4f79b80be56fc8bc8c41d375c267
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 10 08:53:31 2014 -0400
inspector: Add combobox popups to the tree
gtk/inspector/widget-tree.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/widget-tree.c b/gtk/inspector/widget-tree.c
index 774b0c5..6ecd28f 100644
--- a/gtk/inspector/widget-tree.c
+++ b/gtk/inspector/widget-tree.c
@@ -25,6 +25,7 @@
#include "prop-list.h"
#include "widget-tree.h"
#include "gtkwidgetprivate.h"
+#include "gtkcomboboxprivate.h"
#include <string.h>
enum
@@ -343,6 +344,15 @@ gtk_inspector_widget_tree_append_object (GtkInspectorWidgetTree *wt,
gtk_inspector_widget_tree_append_object (wt, G_OBJECT (submenu), &iter, "submenu");
}
+ if (GTK_IS_COMBO_BOX (object))
+ {
+ GtkWidget *popup;
+
+ popup = gtk_combo_box_get_popup (GTK_COMBO_BOX (object));
+ if (popup)
+ gtk_inspector_widget_tree_append_object (wt, G_OBJECT (popup), &iter, "popup");
+ }
+
if (GTK_IS_TREE_VIEW (object))
{
gint n_columns, i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]