[gimp/goat-invasion: 335/526] app: update paramspec duplication with changes in gegl paramspecs



commit 2982422126a4fce3379d122ebc6e97bb346426d6
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 30 21:38:47 2012 +0100

    app: update paramspec duplication with changes in gegl paramspecs

 app/core/gimpparamspecs-duplicate.c |    1 +
 app/widgets/gimppropwidgets.c       |    8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpparamspecs-duplicate.c b/app/core/gimpparamspecs-duplicate.c
index ae1b285..d24a202 100644
--- a/app/core/gimpparamspecs-duplicate.c
+++ b/app/core/gimpparamspecs-duplicate.c
@@ -150,6 +150,7 @@ gimp_param_spec_duplicate (GParamSpec *pspec)
                                   spec->default_value,
                                   gspec->ui_minimum,
                                   gspec->ui_maximum,
+                                  gspec->ui_gamma,
                                   pspec->flags);
     }
   else if (G_IS_PARAM_SPEC_INT (pspec))
diff --git a/app/widgets/gimppropwidgets.c b/app/widgets/gimppropwidgets.c
index 36e467b..7d85407 100644
--- a/app/widgets/gimppropwidgets.c
+++ b/app/widgets/gimppropwidgets.c
@@ -511,13 +511,17 @@ 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 (scale, gspec->ui_minimum, gspec->ui_maximum);
+      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);
     }
 
   if (GEGL_IS_PARAM_SPEC_INT (param_spec))
     {
       GeglParamSpecInt *gspec = GEGL_PARAM_SPEC_INT (param_spec);
-      gimp_spin_scale_set_scale_limits (scale, gspec->ui_minimum, gspec->ui_maximum);
+      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]