[gimp] app: update paramspec duplication with changes in gegl paramspecs
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: update paramspec duplication with changes in gegl paramspecs
- Date: Wed, 2 May 2012 16:24:38 +0000 (UTC)
commit b8e340b5bc3646871a0feb78b0b8db4d8547b880
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]