[gegl] property-types: don't comment out default value handling in GeglParamSpecColor
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] property-types: don't comment out default value handling in GeglParamSpecColor
- Date: Mon, 26 Mar 2012 17:20:11 +0000 (UTC)
commit 574e6d0ffb10476a1526d3db0845b0e96de3a922
Author: Michael Natterer <mitch gimp org>
Date: Mon Mar 26 19:19:24 2012 +0200
property-types: don't comment out default value handling in GeglParamSpecColor
gegl/property-types/gegl-color.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/gegl/property-types/gegl-color.c b/gegl/property-types/gegl-color.c
index 1662b10..9c69880 100644
--- a/gegl/property-types/gegl-color.c
+++ b/gegl/property-types/gegl-color.c
@@ -501,16 +501,14 @@ gegl_param_color_finalize (GParamSpec *self)
parent_class->finalize (self);
}
-#if 0
static void
-value_set_default (GParamSpec *param_spec,
- GValue *value)
+gegl_param_color_set_default (GParamSpec *param_spec,
+ GValue *value)
{
GeglParamColor *gegl_color = GEGL_PARAM_COLOR (param_spec);
g_value_set_object (value, gegl_color->default_color);
}
-#endif
GType
gegl_param_color_get_type (void)
@@ -525,7 +523,7 @@ gegl_param_color_get_type (void)
gegl_param_color_init,
0,
gegl_param_color_finalize,
- NULL, /*value_set_default,*/
+ gegl_param_color_set_default,
NULL,
NULL
};
@@ -549,10 +547,10 @@ gegl_param_spec_color (const gchar *name,
param_color = g_param_spec_internal (GEGL_TYPE_PARAM_COLOR,
name, nick, blurb, flags);
-/*
+
param_color->default_color = default_color;
if (default_color)
- g_object_ref (default_color);*/
+ g_object_ref (default_color);
return G_PARAM_SPEC (param_color);
}
@@ -568,9 +566,10 @@ gegl_param_spec_color_from_string (const gchar *name,
param_color = g_param_spec_internal (GEGL_TYPE_PARAM_COLOR,
name, nick, blurb, flags);
-/*
+
param_color->default_color = g_object_new (GEGL_TYPE_COLOR,
"string", default_color_string,
- NULL);*/
+ NULL);
+
return G_PARAM_SPEC (param_color);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]