gegl r2770 - in trunk: . gegl
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2770 - in trunk: . gegl
- Date: Sun, 16 Nov 2008 18:23:34 +0000 (UTC)
Author: ok
Date: Sun Nov 16 18:23:34 2008
New Revision: 2770
URL: http://svn.gnome.org/viewvc/gegl?rev=2770&view=rev
Log:
* gegl/gegl-chant.h: create a dummy gegl_path when requested if it
is NULL.
Modified:
trunk/ChangeLog
trunk/gegl/gegl-chant.h
Modified: trunk/gegl/gegl-chant.h
==============================================================================
--- trunk/gegl/gegl-chant.h (original)
+++ trunk/gegl/gegl-chant.h Sun Nov 16 18:23:34 2008
@@ -452,14 +452,16 @@
break;
#define gegl_chant_color(name, nick, def, blurb) \
case PROP_##name: \
+ if (!properties->name)properties->name = gegl_color_new ("red"); /* feels ugly as well */\
g_value_set_object (value, properties->name); \
break;
#define gegl_chant_curve(name, nick, blurb) \
case PROP_##name: \
g_value_set_object (value, properties->name); \
break;
-#define gegl_chant_path(name, nick, blurb) \
+#define gegl_chant_path(name, nick, blurb) \
case PROP_##name: \
+ if (!properties->name)properties->name = gegl_path_new (); /* this feels ugly */\
g_value_set_object (value, properties->name); \
break;/*XXX*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]