From 4ca181dc87d293ac785a208c557826962391b2dc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 4 Sep 2008 00:49:16 +0000 Subject: [PATCH] Fix the spinbuttons in the color selector svn path=/trunk/; revision=21272 --- ChangeLog | 3 +++ gtk/gtkcolorsel.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a925e905e..47695e3cf4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-09-03 Matthias Clasen + * gtk/gtkcolorsel.c: Set page_size to 0 for the spinbuttons + in the color selector. + * README.in: Add a note about the GtkAdjustment clamping change 2008-09-03 Matthias Clasen diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c index c21b512e83..49a6bbd51c 100644 --- a/gtk/gtkcolorsel.c +++ b/gtk/gtkcolorsel.c @@ -2037,16 +2037,16 @@ make_label_spinbutton (GtkColorSelection *colorsel, if (channel_type == COLORSEL_HUE) { - adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 360.0, 1.0, 1.0, 1.0)); + adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 360.0, 1.0, 1.0, 0.0)); } else if (channel_type == COLORSEL_SATURATION || channel_type == COLORSEL_VALUE) { - adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 100.0, 1.0, 1.0, 1.0)); + adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 100.0, 1.0, 1.0, 0.0)); } else { - adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 1.0, 1.0)); + adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 1.0, 0.0)); } g_object_set_data (G_OBJECT (adjust), I_("COLORSEL"), colorsel); *spinbutton = gtk_spin_button_new (adjust, 10.0, 0);