[gegl] emboss: improve blurbs' compact property declarations



commit a11e7b66d8a6cc7889dcf651671cec409c590363
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri May 16 16:13:20 2014 +0200

    emboss: improve blurbs' compact property declarations

 operations/common/emboss.c |   43 ++++++++++++++-----------------------------
 1 files changed, 14 insertions(+), 29 deletions(-)
---
diff --git a/operations/common/emboss.c b/operations/common/emboss.c
index 7cb8d13..7b8f63c 100644
--- a/operations/common/emboss.c
+++ b/operations/common/emboss.c
@@ -27,38 +27,23 @@ gegl_enum_start (gegl_emboss_type)
   gegl_enum_value (GEGL_EMBOSS_TYPE_BUMPMAP, "Bumpmap (preserve original colors)")
 gegl_enum_end (GeglEmbossType)
 
-gegl_property_enum (
-    type,
-    GeglEmbossType, gegl_emboss_type, GEGL_EMBOSS_TYPE_EMBOSS,
-    "nick",  _("Emboss Type"),
-    "blurb", _("Rendering type"),
+gegl_property_enum (type,
+    GeglEmbossType, gegl_emboss_type,
+    "nick"   , _("Emboss Type"),
+    "blurb"  , _("Rendering type"),
+    "default", GEGL_EMBOSS_TYPE_EMBOSS,
     NULL)
-
-gegl_property_double (
-    azimuth,
-    "nick",   _("Azimuth"),
-    "min",      0.0,
-    "max",    360.0,
-    "default", 30.0,
-    "blurb",  _("The light angle (degrees)"),
+gegl_property_double (azimuth, "nick", _("Azimuth"),
+    "blurb",  _("Light angle (degrees)"),
+    "min"  , 0.0, "max", 360.0, "default", 30.0,
     NULL)
-
-gegl_property_double (
-    elevation,
-    "nick",  _("Elevation"),
-    "min",      0.0,
-    "max",    180.0,
-    "default", 45.0,
-    "blurb", _("The elevation angle (degrees)"),
+gegl_property_double (elevation, "nick", _("Elevation"),
+    "blurb"  , _("Elevation angle (degrees)"),
+    "default", 45.0, "min", 0.0, "max", 180.0,
     NULL)
-
-gegl_property_int (
-    depth,
-    "nick", _("Depth"),
-    "min",      1,
-    "max",    100,
-    "default", 20,
-    "blurb", _("The filter width"),
+gegl_property_int (depth, "nick", _("Depth"),
+    "blurb"  , _("Filter width"),
+    "default", 20, "min", 1, "max", 100,
     NULL)
 
 #else


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