Commit c0444e30 authored by Ell's avatar Ell
Browse files

app: update the layer mode combo model after construction

... otherwise with-behind and with-replace don't take effect until
switching groups.
parent b3dea58c
...@@ -144,8 +144,6 @@ gimp_layer_mode_combo_box_init (GimpLayerModeComboBox *combo) ...@@ -144,8 +144,6 @@ gimp_layer_mode_combo_box_init (GimpLayerModeComboBox *combo)
GIMP_TYPE_LAYER_MODE_COMBO_BOX, GIMP_TYPE_LAYER_MODE_COMBO_BOX,
GimpLayerModeComboBoxPrivate); GimpLayerModeComboBoxPrivate);
gimp_layer_mode_combo_box_update_model (combo, FALSE);
gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (combo), gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (combo),
gimp_layer_mode_combo_box_separator_func, gimp_layer_mode_combo_box_separator_func,
GINT_TO_POINTER (-1), GINT_TO_POINTER (-1),
...@@ -159,6 +157,8 @@ gimp_layer_mode_combo_box_constructed (GObject *object) ...@@ -159,6 +157,8 @@ gimp_layer_mode_combo_box_constructed (GObject *object)
G_OBJECT_CLASS (parent_class)->constructed (object); G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_layer_mode_combo_box_update_model (combo, FALSE);
gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (combo), gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (combo),
combo->priv->layer_mode); combo->priv->layer_mode);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment