diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-09-04 00:49:16 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-09-04 00:49:16 +0000 |
commit | 4ca181dc87d293ac785a208c557826962391b2dc (patch) | |
tree | 21cdd76abc1b58e00c88949205832450cb94a7e1 | |
parent | 4866c5501e558f7958421d2080ce5067dacbe3bd (diff) | |
download | gtk+-4ca181dc87d293ac785a208c557826962391b2dc.tar.gz |
Fix the spinbuttons in the color selector
svn path=/trunk/; revision=21272
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | gtk/gtkcolorsel.c | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,8 @@ 2008-09-03 Matthias Clasen <mclasen@redhat.com> + * 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 <mclasen@redhat.com> 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); |