Commit 28506525 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/gegl/gimpcolorbalanceconfig.c app/gegl/gimpcurvesconfig.c

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.


svn path=/trunk/; revision=24748
parent 0e6699ef
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.
2008-01-28 Michael Natterer <mitch@gimp.org>
* app/gegl/gimpoperationtilesink.c
......
......@@ -178,6 +178,9 @@ gimp_color_balance_config_set_property (GObject *object,
{
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:
......
......@@ -52,17 +52,20 @@ enum
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 @@ gimp_curves_config_init (GimpCurvesConfig *self)
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 @@ gimp_curves_config_set_property (GObject *object,
{
case PROP_CHANNEL:
self->channel = g_value_get_enum (value);
g_object_notify (object, "curve");
break;
case PROP_CURVE:
......@@ -211,6 +219,13 @@ gimp_curves_config_reset (GimpConfig *config)
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 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
}
}
g_object_freeze_notify (G_OBJECT (config));
for (i = 0; i < 5; i++)
{
GimpCurve *curve = config->curve[i];
......@@ -276,6 +293,8 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
gimp_data_thaw (GIMP_DATA (curve));
}
g_object_thaw_notify (G_OBJECT (config));
return TRUE;
}
......
......@@ -176,6 +176,9 @@ gimp_hue_saturation_config_set_property (GObject *object,
{
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:
......
......@@ -199,6 +199,11 @@ gimp_levels_config_set_property (GObject *object,
{
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:
......
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