[gimp] plug-ins: pagr-size must be 0 on adjustments used for spin buttons



commit 333eeab13f3d7b96833e1c33d6edaa42815f6eec
Author: Michael Natterer <mitch gimp org>
Date:   Thu Sep 9 13:50:15 2010 +0200

    plug-ins: pagr-size must be 0 on adjustments used for spin buttons

 plug-ins/common/sample-colorize.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/common/sample-colorize.c b/plug-ins/common/sample-colorize.c
index b4633f9..d40f9d6 100644
--- a/plug-ins/common/sample-colorize.c
+++ b/plug-ins/common/sample-colorize.c
@@ -1556,7 +1556,7 @@ smp_dialog (void)
   gtk_widget_show (label);
 
   /* min input spinbutton */
-  data = gtk_adjustment_new ((gfloat)g_values.lvl_in_min, 0.0, 254.0, 1, 10, 10);
+  data = gtk_adjustment_new ((gfloat)g_values.lvl_in_min, 0.0, 254.0, 1, 10, 0);
   g_di.adj_lvl_in_min = GTK_ADJUSTMENT (data);
 
   spinbutton = gtk_spin_button_new (g_di.adj_lvl_in_min, 0.5, 0);
@@ -1569,7 +1569,7 @@ smp_dialog (void)
                     &g_di);
 
   /* input gamma spinbutton */
-  data = gtk_adjustment_new ((gfloat)g_values.lvl_in_gamma, 0.1, 10.0, 0.02, 0.2, 0.2);
+  data = gtk_adjustment_new ((gfloat)g_values.lvl_in_gamma, 0.1, 10.0, 0.02, 0.2, 0);
   g_di.adj_lvl_in_gamma = GTK_ADJUSTMENT (data);
 
   spinbutton = gtk_spin_button_new (g_di.adj_lvl_in_gamma, 0.5, 2);
@@ -1582,7 +1582,7 @@ smp_dialog (void)
                     &g_di);
 
   /* high input spinbutton */
-  data = gtk_adjustment_new ((gfloat)g_values.lvl_in_max, 1.0, 255.0, 1, 10, 10);
+  data = gtk_adjustment_new ((gfloat)g_values.lvl_in_max, 1.0, 255.0, 1, 10, 0);
   g_di.adj_lvl_in_max = GTK_ADJUSTMENT (data);
 
   spinbutton = gtk_spin_button_new (g_di.adj_lvl_in_max, 0.5, 0);
@@ -1606,7 +1606,7 @@ smp_dialog (void)
   gtk_widget_show (label);
 
   /*  min output spinbutton */
-  data = gtk_adjustment_new ((gfloat)g_values.lvl_out_min, 0.0, 254.0, 1, 10, 10);
+  data = gtk_adjustment_new ((gfloat)g_values.lvl_out_min, 0.0, 254.0, 1, 10, 0);
   g_di.adj_lvl_out_min = GTK_ADJUSTMENT (data);
 
   spinbutton = gtk_spin_button_new (g_di.adj_lvl_out_min, 0.5, 0);
@@ -1619,7 +1619,7 @@ smp_dialog (void)
                     &g_di);
 
   /* high output spinbutton */
-  data = gtk_adjustment_new ((gfloat)g_values.lvl_out_max, 0.0, 255.0, 1, 10, 10);
+  data = gtk_adjustment_new ((gfloat)g_values.lvl_out_max, 0.0, 255.0, 1, 10, 0);
   g_di.adj_lvl_out_max = GTK_ADJUSTMENT (data);
 
   spinbutton = gtk_spin_button_new (g_di.adj_lvl_out_max, 0.5, 0);



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