diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-10-04 11:43:50 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-04 11:43:50 -0400 |
commit | 051eedcea19521cfd0ef8e6a3225d30872028538 (patch) | |
tree | d0e2763577218ff839c0116e09ca4a4377b06424 /gtk | |
parent | 9752ab17118907b72a5ed6359be285cc0b496b5c (diff) | |
download | gtk+-051eedcea19521cfd0ef8e6a3225d30872028538.tar.gz |
Small code rearrangement
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/inspector/widget-tree.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gtk/inspector/widget-tree.c b/gtk/inspector/widget-tree.c index 507513fc42..290c9f6a5d 100644 --- a/gtk/inspector/widget-tree.c +++ b/gtk/inspector/widget-tree.c @@ -364,10 +364,15 @@ gtk_inspector_widget_tree_append_object (GtkInspectorWidgetTree *wt, if (GTK_IS_COMBO_BOX (object)) { GtkWidget *popup; + GObject *child; popup = gtk_combo_box_get_popup (GTK_COMBO_BOX (object)); if (popup) gtk_inspector_widget_tree_append_object (wt, G_OBJECT (popup), &iter, "popup"); + + child = G_OBJECT (gtk_combo_box_get_model (GTK_COMBO_BOX (object))); + if (child) + gtk_inspector_widget_tree_append_object (wt, child, &iter, "model"); } if (GTK_IS_TREE_VIEW (object)) @@ -400,15 +405,6 @@ gtk_inspector_widget_tree_append_object (GtkInspectorWidgetTree *wt, gtk_inspector_widget_tree_append_object (wt, child, &iter, "model"); } - if (GTK_IS_COMBO_BOX (object)) - { - GObject *child; - - child = G_OBJECT (gtk_combo_box_get_model (GTK_COMBO_BOX (object))); - if (child) - gtk_inspector_widget_tree_append_object (wt, child, &iter, "model"); - } - if (GTK_IS_CELL_AREA (object)) { FindAllData data; |