[gimp] app: notify on "mode" when a GimpColorFrame mode is chosen from the menu



commit cbe6cd8ebd54b508f819d8d8ee509cadbd939217
Author: Michael Natterer <mitch gimp org>
Date:   Sun Nov 12 20:32:57 2017 +0100

    app: notify on "mode" when a GimpColorFrame mode is chosen from the menu

 app/widgets/gimpcolorframe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpcolorframe.c b/app/widgets/gimpcolorframe.c
index 11886df..ef98d1b 100644
--- a/app/widgets/gimpcolorframe.c
+++ b/app/widgets/gimpcolorframe.c
@@ -396,8 +396,6 @@ gimp_color_frame_set_mode (GimpColorFrame     *frame,
   g_return_if_fail (GIMP_IS_COLOR_FRAME (frame));
 
   gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (frame->menu), mode);
-
-  g_object_notify (G_OBJECT (frame), "mode");
 }
 
 void
@@ -585,6 +583,8 @@ gimp_color_frame_menu_callback (GtkWidget      *widget,
     {
       frame->frame_mode = value;
       gimp_color_frame_update (frame);
+
+      g_object_notify (G_OBJECT (frame), "mode");
     }
 }
 


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