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().
This commit is contained in:
Michael Natterer 2010-09-12 00:57:13 +02:00
parent 3c15255030
commit 0f28b38a55
1 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ gimp_int_radio_group_set_active (GtkRadioButton *radio_button,
* @upper: The uppper boundary. * @upper: The uppper boundary.
* @step_increment: The spinbutton's step increment. * @step_increment: The spinbutton's step increment.
* @page_increment: The spinbutton's page increment (mouse button 2). * @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. * @climb_rate: The spinbutton's climb rate.
* @digits: The spinbutton's number of decimal digits. * @digits: The spinbutton's number of decimal digits.
* *
@ -450,7 +450,7 @@ gimp_spin_button_new (GtkObject **adjustment, /* return value */
GtkWidget *spinbutton; GtkWidget *spinbutton;
*adjustment = gtk_adjustment_new (value, lower, upper, *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), spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits); climb_rate, digits);