[gimp/goat-invasion: 339/526] app: git_spin_scale invoke value_changed when setting gamma



commit 4bcd898efbe8aa553230deaffd6fac6a4b7efa21
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 30 23:44:41 2012 +0100

    app: git_spin_scale invoke value_changed when setting gamma

 app/widgets/gimpspinscale.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index dd2e606..445763c 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -137,10 +137,11 @@ gimp_spin_scale_class_init (GimpSpinScaleClass *klass)
 static void
 gimp_spin_scale_init (GimpSpinScale *scale)
 {
+  GimpSpinScalePrivate *private = GET_PRIVATE (scale);
+  private->gamma = 1.0;
   gtk_entry_set_alignment (GTK_ENTRY (scale), 1.0);
   gtk_entry_set_has_frame (GTK_ENTRY (scale), FALSE);
   gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (scale), TRUE);
-  gimp_spin_scale_set_gamma (scale, 1.0);
 }
 
 static void
@@ -655,6 +656,8 @@ gimp_spin_scale_set_gamma (GimpSpinScale *scale,
   private = GET_PRIVATE (scale);
 
   private->gamma = gamma;
+
+  gimp_spin_scale_value_changed (GTK_SPIN_BUTTON (scale));
 }
 
 gdouble



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