Small code rearrangement
This commit is contained in:
parent
9752ab1711
commit
051eedcea1
@ -364,10 +364,15 @@ gtk_inspector_widget_tree_append_object (GtkInspectorWidgetTree *wt,
|
|||||||
if (GTK_IS_COMBO_BOX (object))
|
if (GTK_IS_COMBO_BOX (object))
|
||||||
{
|
{
|
||||||
GtkWidget *popup;
|
GtkWidget *popup;
|
||||||
|
GObject *child;
|
||||||
|
|
||||||
popup = gtk_combo_box_get_popup (GTK_COMBO_BOX (object));
|
popup = gtk_combo_box_get_popup (GTK_COMBO_BOX (object));
|
||||||
if (popup)
|
if (popup)
|
||||||
gtk_inspector_widget_tree_append_object (wt, G_OBJECT (popup), &iter, "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))
|
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");
|
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))
|
if (GTK_IS_CELL_AREA (object))
|
||||||
{
|
{
|
||||||
FindAllData data;
|
FindAllData data;
|
||||||
|
Loading…
Reference in New Issue
Block a user