inspector: Add combobox popups to the tree

This commit is contained in:
Matthias Clasen 2014-06-10 08:53:31 -04:00
parent ec9cf6d7c3
commit b0c6263f6c

View File

@ -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;