mirror of https://github.com/GNOME/gimp.git
app: update the layer mode combo model after construction
... otherwise with-behind and with-replace don't take effect until switching groups.
This commit is contained in:
parent
b3dea58cfd
commit
c0444e30bd
|
@ -144,8 +144,6 @@ gimp_layer_mode_combo_box_init (GimpLayerModeComboBox *combo)
|
|||
GIMP_TYPE_LAYER_MODE_COMBO_BOX,
|
||||
GimpLayerModeComboBoxPrivate);
|
||||
|
||||
gimp_layer_mode_combo_box_update_model (combo, FALSE);
|
||||
|
||||
gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (combo),
|
||||
gimp_layer_mode_combo_box_separator_func,
|
||||
GINT_TO_POINTER (-1),
|
||||
|
@ -159,6 +157,8 @@ gimp_layer_mode_combo_box_constructed (GObject *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),
|
||||
combo->priv->layer_mode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue