combobox: Stop using GtkBox's pack-type property

Reorder the child widgets accordingly instead.
This commit is contained in:
Timm Bäder 2018-12-26 08:34:47 +01:00 committed by Matthias Clasen
parent d7756dc62b
commit ab6a67dbeb
2 changed files with 2 additions and 6 deletions

View File

@ -1158,6 +1158,7 @@ gtk_combo_box_create_child (GtkComboBox *combo_box)
gtk_cell_view_set_model (GTK_CELL_VIEW (priv->cell_view), priv->model);
gtk_container_add (GTK_CONTAINER (gtk_widget_get_parent (priv->arrow)),
priv->cell_view);
gtk_box_reorder_child (GTK_BOX (gtk_widget_get_parent (priv->arrow)), priv->cell_view, 0);
_gtk_bin_set_child (GTK_BIN (combo_box), priv->cell_view);
}
}
@ -1193,6 +1194,7 @@ gtk_combo_box_add (GtkContainer *container,
gtk_widget_set_hexpand (widget, TRUE);
gtk_container_add (GTK_CONTAINER (priv->box), widget);
gtk_box_reorder_child (GTK_BOX (priv->box), widget, 0);
_gtk_bin_set_child (GTK_BIN (container), widget);
if (priv->has_entry)

View File

@ -16,16 +16,10 @@
<object class="GtkIcon" id="arrow">
<property name="css-name">arrow</property>
</object>
<packing>
<property name="pack-type">end</property>
</packing>
</child>
</object>
</child>
</object>
<packing>
<property name="pack-type">end</property>
</packing>
</child>
</object>
</child>