[gimp] app: add GIMP_CONFIG_PARAM_SERIALIZE to all duplicated GParamSpecs



commit b02e251eab5e79eeea972418dd03f06f6412538b
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 1 00:24:04 2012 +0200

    app: add GIMP_CONFIG_PARAM_SERIALIZE to all duplicated GParamSpecs

 app/core/gimpparamspecs-duplicate.c |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/app/core/gimpparamspecs-duplicate.c b/app/core/gimpparamspecs-duplicate.c
index d24a202..6b233b6 100644
--- a/app/core/gimpparamspecs-duplicate.c
+++ b/app/core/gimpparamspecs-duplicate.c
@@ -51,7 +51,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                               g_param_spec_get_blurb (pspec),
                                               GIMP_CONFIG_PATH_FILE,
                                               spec->default_value,
-                                              pspec->flags);
+                                              pspec->flags |
+                                              GIMP_CONFIG_PARAM_SERIALIZE);
         }
       else
         {
@@ -65,7 +66,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                      g_param_spec_get_nick (pspec),
                                      g_param_spec_get_blurb (pspec),
                                      spec->default_value,
-                                     pspec->flags);
+                                     pspec->flags |
+                                     GIMP_CONFIG_PARAM_SERIALIZE);
 
           if (GEGL_IS_PARAM_SPEC_MULTILINE (pspec))
             {
@@ -84,7 +86,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                    g_param_spec_get_nick (pspec),
                                    g_param_spec_get_blurb (pspec),
                                    spec->default_value,
-                                   pspec->flags);
+                                   pspec->flags |
+                                   GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (G_IS_PARAM_SPEC_ENUM (pspec))
     {
@@ -95,7 +98,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                 g_param_spec_get_blurb (pspec),
                                 G_TYPE_FROM_CLASS (spec->enum_class),
                                 spec->default_value,
-                                pspec->flags);
+                                pspec->flags |
+                                GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (GEGL_IS_PARAM_SPEC_DOUBLE (pspec))
     {
@@ -111,7 +115,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                      gspec->ui_minimum,
                                      gspec->ui_maximum,
                                      gspec->ui_gamma,
-                                     pspec->flags);
+                                     pspec->flags |
+                                     GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (G_IS_PARAM_SPEC_DOUBLE (pspec))
     {
@@ -123,7 +128,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                   spec->minimum,
                                   spec->maximum,
                                   spec->default_value,
-                                  pspec->flags);
+                                  pspec->flags |
+                                  GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (G_IS_PARAM_SPEC_FLOAT (pspec))
     {
@@ -135,7 +141,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                  spec->minimum,
                                  spec->maximum,
                                  spec->default_value,
-                                 pspec->flags);
+                                 pspec->flags |
+                                 GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (GEGL_IS_PARAM_SPEC_INT (pspec))
     {
@@ -151,7 +158,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                   gspec->ui_minimum,
                                   gspec->ui_maximum,
                                   gspec->ui_gamma,
-                                  pspec->flags);
+                                  pspec->flags |
+                                  GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (G_IS_PARAM_SPEC_INT (pspec))
     {
@@ -163,7 +171,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                spec->minimum,
                                spec->maximum,
                                spec->default_value,
-                               pspec->flags);
+                               pspec->flags |
+                               GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (G_IS_PARAM_SPEC_UINT (pspec))
     {
@@ -175,7 +184,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                 spec->minimum,
                                 spec->maximum,
                                 spec->default_value,
-                                pspec->flags);
+                                pspec->flags |
+                                GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (GEGL_IS_PARAM_SPEC_COLOR (pspec))
     {
@@ -203,7 +213,8 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                   g_param_spec_get_blurb (pspec),
                                   TRUE,
                                   &gimp_color,
-                                  pspec->flags);
+                                  pspec->flags |
+                                  GIMP_CONFIG_PARAM_SERIALIZE);
     }
   else if (G_IS_PARAM_SPEC_OBJECT (pspec) ||
            G_IS_PARAM_SPEC_POINTER (pspec))



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