gimp r24748 - in trunk: . app/gegl



Author: mitch
Date: Wed Jan 30 15:48:23 2008
New Revision: 24748
URL: http://svn.gnome.org/viewvc/gimp?rev=24748&view=rev

Log:
2008-01-30  Michael Natterer  <mitch gimp org>

	* app/gegl/gimpcolorbalanceconfig.c
	* app/gegl/gimpcurvesconfig.c
	* app/gegl/gimphuesaturationconfig.c
	* app/gegl/gimplevelsconfig.c: add missing notifications on
	property changes.



Modified:
   trunk/ChangeLog
   trunk/app/gegl/gimpcolorbalanceconfig.c
   trunk/app/gegl/gimpcurvesconfig.c
   trunk/app/gegl/gimphuesaturationconfig.c
   trunk/app/gegl/gimplevelsconfig.c

Modified: trunk/app/gegl/gimpcolorbalanceconfig.c
==============================================================================
--- trunk/app/gegl/gimpcolorbalanceconfig.c	(original)
+++ trunk/app/gegl/gimpcolorbalanceconfig.c	Wed Jan 30 15:48:23 2008
@@ -178,6 +178,9 @@
     {
     case PROP_RANGE:
       self->range = g_value_get_enum (value);
+      g_object_notify (object, "cyan-red");
+      g_object_notify (object, "magenta-green");
+      g_object_notify (object, "yellow-blue");
       break;
 
     case PROP_CYAN_RED:

Modified: trunk/app/gegl/gimpcurvesconfig.c
==============================================================================
--- trunk/app/gegl/gimpcurvesconfig.c	(original)
+++ trunk/app/gegl/gimpcurvesconfig.c	Wed Jan 30 15:48:23 2008
@@ -52,17 +52,20 @@
 
 static void   gimp_curves_config_iface_init   (GimpConfigInterface *iface);
 
-static void   gimp_curves_config_finalize     (GObject       *object);
-static void   gimp_curves_config_get_property (GObject       *object,
-                                               guint          property_id,
-                                               GValue        *value,
-                                               GParamSpec    *pspec);
-static void   gimp_curves_config_set_property (GObject       *object,
-                                               guint          property_id,
-                                               const GValue  *value,
-                                               GParamSpec    *pspec);
+static void   gimp_curves_config_finalize     (GObject          *object);
+static void   gimp_curves_config_get_property (GObject          *object,
+                                               guint             property_id,
+                                               GValue           *value,
+                                               GParamSpec       *pspec);
+static void   gimp_curves_config_set_property (GObject          *object,
+                                               guint             property_id,
+                                               const GValue     *value,
+                                               GParamSpec       *pspec);
 
-static void   gimp_curves_config_reset        (GimpConfig    *config);
+static void   gimp_curves_config_reset        (GimpConfig       *config);
+
+static void   gimp_curves_config_curve_dirty  (GimpCurve        *curve,
+                                               GimpCurvesConfig *config);
 
 
 G_DEFINE_TYPE_WITH_CODE (GimpCurvesConfig, gimp_curves_config,
@@ -115,6 +118,10 @@
        channel++)
     {
       self->curve[channel] = GIMP_CURVE (gimp_curve_new ("curves config"));
+
+      g_signal_connect_object (self->curve[channel], "dirty",
+                               G_CALLBACK (gimp_curves_config_curve_dirty),
+                               self, 0);
     }
 
   gimp_config_reset (GIMP_CONFIG (self));
@@ -176,6 +183,7 @@
     {
     case PROP_CHANNEL:
       self->channel = g_value_get_enum (value);
+      g_object_notify (object, "curve");
       break;
 
     case PROP_CURVE:
@@ -211,6 +219,13 @@
   g_object_thaw_notify (G_OBJECT (config));
 }
 
+static void
+gimp_curves_config_curve_dirty (GimpCurve        *curve,
+                                GimpCurvesConfig *config)
+{
+  g_object_notify (G_OBJECT (config), "curve");
+}
+
 
 /*  public functions  */
 
@@ -262,6 +277,8 @@
         }
     }
 
+  g_object_freeze_notify (G_OBJECT (config));
+
   for (i = 0; i < 5; i++)
     {
       GimpCurve *curve = config->curve[i];
@@ -276,6 +293,8 @@
       gimp_data_thaw (GIMP_DATA (curve));
     }
 
+  g_object_thaw_notify (G_OBJECT (config));
+
   return TRUE;
 }
 

Modified: trunk/app/gegl/gimphuesaturationconfig.c
==============================================================================
--- trunk/app/gegl/gimphuesaturationconfig.c	(original)
+++ trunk/app/gegl/gimphuesaturationconfig.c	Wed Jan 30 15:48:23 2008
@@ -176,6 +176,9 @@
     {
     case PROP_RANGE:
       self->range = g_value_get_enum (value);
+      g_object_notify (object, "hue");
+      g_object_notify (object, "saturation");
+      g_object_notify (object, "lightness");
       break;
 
     case PROP_HUE:

Modified: trunk/app/gegl/gimplevelsconfig.c
==============================================================================
--- trunk/app/gegl/gimplevelsconfig.c	(original)
+++ trunk/app/gegl/gimplevelsconfig.c	Wed Jan 30 15:48:23 2008
@@ -199,6 +199,11 @@
     {
     case PROP_CHANNEL:
       self->channel = g_value_get_enum (value);
+      g_object_notify (object, "gamma");
+      g_object_notify (object, "low-input");
+      g_object_notify (object, "high-input");
+      g_object_notify (object, "low-output");
+      g_object_notify (object, "high-output");
       break;
 
     case PROP_GAMMA:



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