[gimp] app: update the layer mode combo model after construction



commit c0444e30bde1a89358c45854c90e2f978da36abd
Author: Ell <ell_se yahoo com>
Date:   Mon Feb 6 20:05:27 2017 -0500

    app: update the layer mode combo model after construction
    
    ... otherwise with-behind and with-replace don't take effect until
    switching groups.

 app/widgets/gimplayermodecombobox.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimplayermodecombobox.c b/app/widgets/gimplayermodecombobox.c
index bc45c29..60ea38d 100644
--- a/app/widgets/gimplayermodecombobox.c
+++ b/app/widgets/gimplayermodecombobox.c
@@ -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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]