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
This commit is contained in:

committed by
Michael Natterer

parent
0e6699ef5a
commit
2850652503
@ -1,3 +1,11 @@
|
|||||||
|
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>
|
2008-01-28 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/gegl/gimpoperationtilesink.c
|
* app/gegl/gimpoperationtilesink.c
|
||||||
|
@ -178,6 +178,9 @@ gimp_color_balance_config_set_property (GObject *object,
|
|||||||
{
|
{
|
||||||
case PROP_RANGE:
|
case PROP_RANGE:
|
||||||
self->range = g_value_get_enum (value);
|
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;
|
break;
|
||||||
|
|
||||||
case PROP_CYAN_RED:
|
case PROP_CYAN_RED:
|
||||||
|
@ -64,6 +64,9 @@ static void gimp_curves_config_set_property (GObject *object,
|
|||||||
|
|
||||||
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,
|
G_DEFINE_TYPE_WITH_CODE (GimpCurvesConfig, gimp_curves_config,
|
||||||
G_TYPE_OBJECT,
|
G_TYPE_OBJECT,
|
||||||
@ -115,6 +118,10 @@ gimp_curves_config_init (GimpCurvesConfig *self)
|
|||||||
channel++)
|
channel++)
|
||||||
{
|
{
|
||||||
self->curve[channel] = GIMP_CURVE (gimp_curve_new ("curves config"));
|
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));
|
gimp_config_reset (GIMP_CONFIG (self));
|
||||||
@ -176,6 +183,7 @@ gimp_curves_config_set_property (GObject *object,
|
|||||||
{
|
{
|
||||||
case PROP_CHANNEL:
|
case PROP_CHANNEL:
|
||||||
self->channel = g_value_get_enum (value);
|
self->channel = g_value_get_enum (value);
|
||||||
|
g_object_notify (object, "curve");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_CURVE:
|
case PROP_CURVE:
|
||||||
@ -211,6 +219,13 @@ gimp_curves_config_reset (GimpConfig *config)
|
|||||||
g_object_thaw_notify (G_OBJECT (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 */
|
/* 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++)
|
for (i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
GimpCurve *curve = config->curve[i];
|
GimpCurve *curve = config->curve[i];
|
||||||
@ -276,6 +293,8 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
|
|||||||
gimp_data_thaw (GIMP_DATA (curve));
|
gimp_data_thaw (GIMP_DATA (curve));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_object_thaw_notify (G_OBJECT (config));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,6 +176,9 @@ gimp_hue_saturation_config_set_property (GObject *object,
|
|||||||
{
|
{
|
||||||
case PROP_RANGE:
|
case PROP_RANGE:
|
||||||
self->range = g_value_get_enum (value);
|
self->range = g_value_get_enum (value);
|
||||||
|
g_object_notify (object, "hue");
|
||||||
|
g_object_notify (object, "saturation");
|
||||||
|
g_object_notify (object, "lightness");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_HUE:
|
case PROP_HUE:
|
||||||
|
@ -199,6 +199,11 @@ gimp_levels_config_set_property (GObject *object,
|
|||||||
{
|
{
|
||||||
case PROP_CHANNEL:
|
case PROP_CHANNEL:
|
||||||
self->channel = g_value_get_enum (value);
|
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;
|
break;
|
||||||
|
|
||||||
case PROP_GAMMA:
|
case PROP_GAMMA:
|
||||||
|
Reference in New Issue
Block a user