[gimp] libgimpwidgets: set page_size to 0 on adjustments used for spin buttons
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: set page_size to 0 on adjustments used for spin buttons
- Date: Sat, 11 Sep 2010 22:58:28 +0000 (UTC)
commit 0f28b38a5513415156f572a94a37e72afcf8a0cd
Author: Michael Natterer <mitch gimp org>
Date: Sun Sep 12 00:57:13 2010 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimpwidgets/gimpwidgets.c b/libgimpwidgets/gimpwidgets.c
index 7288186..6fea129 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]