[gegl] gegl-color: Make gegl_param_spec_color_get_default() public



commit 539c231c9e50dda3f526fb4e3c0b9f6d422130f0
Author: Jon Nordby <jononor gmail com>
Date:   Tue Jan 20 00:45:34 2015 +0100

    gegl-color: Make gegl_param_spec_color_get_default() public
    
    Required to be able to copy/clone a paramspec

 gegl/property-types/gegl-color.c |    2 --
 gegl/property-types/gegl-color.h |   10 ++++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/gegl/property-types/gegl-color.c b/gegl/property-types/gegl-color.c
index 3348ca4..a362926 100644
--- a/gegl/property-types/gegl-color.c
+++ b/gegl/property-types/gegl-color.c
@@ -492,8 +492,6 @@ gegl_param_color_init (GParamSpec *self)
 }
 
 GeglColor *
-gegl_param_spec_color_get_default (GParamSpec *self);
-GeglColor *
 gegl_param_spec_color_get_default (GParamSpec *self)
 {
   return GEGL_PARAM_COLOR (self)->default_color;
diff --git a/gegl/property-types/gegl-color.h b/gegl/property-types/gegl-color.h
index 7d5480d..a30567d 100644
--- a/gegl/property-types/gegl-color.h
+++ b/gegl/property-types/gegl-color.h
@@ -182,6 +182,16 @@ GParamSpec * gegl_param_spec_color_from_string (const gchar *name,
                                                 const gchar *blurb,
                                                 const gchar *default_color_string,
                                                 GParamFlags  flags);
+/**
+ * gegl_param_spec_color_get_default:
+ * @self: a #GeglColor #GParamSpec
+ *
+ * Get the default color value of the param spec
+ *
+ * Returns: (transfer none): the default #GeglColor
+ */
+GeglColor *
+gegl_param_spec_color_get_default (GParamSpec *self);
 
 G_END_DECLS
 


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