[gimp] app: minor cosmetic cleanup in the GEGL property code



commit f3092ebfa434843228c062884f07fa2e3efdddf3
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 20 20:47:31 2014 +0200

    app: minor cosmetic cleanup in the GEGL property code

 app/core/gimpparamspecs-duplicate.c |   11 ++++++-----
 app/widgets/gimpproptable.c         |    2 ++
 app/widgets/gimppropwidgets.c       |    2 ++
 3 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpparamspecs-duplicate.c b/app/core/gimpparamspecs-duplicate.c
index b3205a5..b9b271a 100644
--- a/app/core/gimpparamspecs-duplicate.c
+++ b/app/core/gimpparamspecs-duplicate.c
@@ -66,10 +66,6 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
         }
       else
         {
-          static GQuark multiline_quark = 0;
-
-          if (! multiline_quark)
-            multiline_quark = g_quark_from_static_string ("multiline");
 
           copy = g_param_spec_string (pspec->name,
                                       g_param_spec_get_nick (pspec),
@@ -79,6 +75,11 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
 
           if (GEGL_IS_PARAM_SPEC_MULTILINE (pspec))
             {
+              static GQuark multiline_quark = 0;
+
+              if (! multiline_quark)
+                multiline_quark = g_quark_from_static_string ("multiline");
+
               g_param_spec_set_qdata (copy, multiline_quark,
                                       GINT_TO_POINTER (TRUE));
             }
@@ -108,7 +109,7 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
   else if (GEGL_IS_PARAM_SPEC_DOUBLE (pspec))
     {
       GeglParamSpecDouble *gspec = GEGL_PARAM_SPEC_DOUBLE (pspec);
-      GParamSpecDouble    *spec = G_PARAM_SPEC_DOUBLE (pspec);
+      GParamSpecDouble    *spec  = G_PARAM_SPEC_DOUBLE (pspec);
 
       copy = gegl_param_spec_double (pspec->name,
                                      g_param_spec_get_nick (pspec),
diff --git a/app/widgets/gimpproptable.c b/app/widgets/gimpproptable.c
index a5fa0a1..f524415 100644
--- a/app/widgets/gimpproptable.c
+++ b/app/widgets/gimpproptable.c
@@ -239,6 +239,7 @@ gimp_prop_table_new (GObject              *config,
           if (GEGL_IS_PARAM_SPEC_DOUBLE (pspec))
             {
               GeglParamSpecDouble *gspec = GEGL_PARAM_SPEC_DOUBLE (pspec);
+
               step   = gspec->ui_step_small;
               page   = gspec->ui_step_big;
               digits = gspec->ui_digits;
@@ -246,6 +247,7 @@ gimp_prop_table_new (GObject              *config,
           else if (GEGL_IS_PARAM_SPEC_INT (pspec))
             {
               GeglParamSpecInt *gspec = GEGL_PARAM_SPEC_INT (pspec);
+
               step   = gspec->ui_step_small;
               page   = gspec->ui_step_big;
               digits = 0;
diff --git a/app/widgets/gimppropwidgets.c b/app/widgets/gimppropwidgets.c
index 2a1fc27..bf80038 100644
--- a/app/widgets/gimppropwidgets.c
+++ b/app/widgets/gimppropwidgets.c
@@ -505,6 +505,7 @@ gimp_prop_spin_scale_new (GObject     *config,
   if (GEGL_IS_PARAM_SPEC_DOUBLE (param_spec))
     {
       GeglParamSpecDouble *gspec = GEGL_PARAM_SPEC_DOUBLE (param_spec);
+
       gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (scale),
                                         gspec->ui_minimum, gspec->ui_maximum);
       gimp_spin_scale_set_gamma (GIMP_SPIN_SCALE (scale), gspec->ui_gamma);
@@ -512,6 +513,7 @@ gimp_prop_spin_scale_new (GObject     *config,
   else if (GEGL_IS_PARAM_SPEC_INT (param_spec))
     {
       GeglParamSpecInt *gspec = GEGL_PARAM_SPEC_INT (param_spec);
+
       gimp_spin_scale_set_scale_limits (GIMP_SPIN_SCALE (scale),
                                         gspec->ui_minimum, gspec->ui_maximum);
       gimp_spin_scale_set_gamma (GIMP_SPIN_SCALE (scale), gspec->ui_gamma);


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