From 0f28b38a5513415156f572a94a37e72afcf8a0cd Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 12 Sep 2010 00:57:13 +0200 Subject: [PATCH] libgimpwidgets: set page_size to 0 on adjustments used for spin buttons Spin buttons must always have a zero page size, fix that for all spin buttons created with gimp_spin_button_new(). --- libgimpwidgets/gimpwidgets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgimpwidgets/gimpwidgets.c b/libgimpwidgets/gimpwidgets.c index 7288186899..6fea129bba 100644 --- a/libgimpwidgets/gimpwidgets.c +++ b/libgimpwidgets/gimpwidgets.c @@ -425,7 +425,7 @@ gimp_int_radio_group_set_active (GtkRadioButton *radio_button, * @upper: The uppper boundary. * @step_increment: The spinbutton's step increment. * @page_increment: The spinbutton's page increment (mouse button 2). - * @page_size: The spinbutton's page size. + * @page_size: Ignored, spin buttons must always have a zero page size. * @climb_rate: The spinbutton's climb rate. * @digits: The spinbutton's number of decimal digits. * @@ -450,7 +450,7 @@ gimp_spin_button_new (GtkObject **adjustment, /* return value */ GtkWidget *spinbutton; *adjustment = gtk_adjustment_new (value, lower, upper, - step_increment, page_increment, page_size); + step_increment, page_increment, 0); spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment), climb_rate, digits);