Commit 3d79f382 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

app: properly notify on group changes in GimpLayerModeComboBox

parent 69b7cb02
......@@ -272,14 +272,19 @@ gimp_layer_mode_combo_box_set_mode (GimpLayerModeComboBox *combo,
model = gtk_combo_box_get_model (GTK_COMBO_BOX (combo));
g_object_freeze_notify (G_OBJECT (combo));
if (! gimp_int_store_lookup_by_value (model, mode, &dummy))
{
combo->priv->group = gimp_layer_mode_get_group (mode);
g_object_notify (G_OBJECT (combo), "group");
gimp_layer_mode_combo_box_update_model (combo, FALSE);
}
gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (combo), mode);
g_object_thaw_notify (G_OBJECT (combo));
}
}
......@@ -300,9 +305,14 @@ gimp_layer_mode_combo_box_set_group (GimpLayerModeComboBox *combo,
if (group != combo->priv->group)
{
g_object_freeze_notify (G_OBJECT (combo));
combo->priv->group = group;
g_object_notify (G_OBJECT (combo), "group");
gimp_layer_mode_combo_box_update_model (combo, TRUE);
g_object_thaw_notify (G_OBJECT (combo));
}
}
......
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