Fix the spinbuttons in the color selector

svn path=/trunk/; revision=21272
This commit is contained in:
Matthias Clasen 2008-09-04 00:49:16 +00:00
parent 4866c5501e
commit 4ca181dc87
2 changed files with 6 additions and 3 deletions

View File

@ -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>

View File

@ -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);