[gegl] color: use macros instead of varargs for prop metadata



commit 83cfdc6f2921edb9dbf02e968829560338e38caa
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon May 19 14:41:49 2014 +0200

    color: use macros instead of varargs for prop metadata

 operations/common/color.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/operations/common/color.c b/operations/common/color.c
index b3ed841..83643ab 100644
--- a/operations/common/color.c
+++ b/operations/common/color.c
@@ -20,14 +20,13 @@
 #include <glib/gi18n-lib.h>
 
 #ifdef GEGL_PROPERTIES
-gegl_property_color (value, _("Color"),
-    "description", _("The color to render (defaults to 'black')"),
-    "default", "black",
-    NULL)
-
-gegl_property_format (format, _("Babl Format"),
-    "description", _("The babl format of the output"),
-    NULL)
+
+property_color (value, _("Color"), "black")
+    description (("The color to render (Idefaults to 'black')"))
+
+property_format (format, _("Babl Format"), 666)
+    description (_("The babl format of the output"))
+
 #else
 
 #define GEGL_OP_POINT_RENDER


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