changeset 27275:00d9a2e24797

Change the page_size on the GtkAdjustment used for GtkSpinButtons on the prefs pages. It's not used with them and should be zero. This fixes the warnings from Gtk: "GtkSpinButton: setting an adjustment with non-zero page size is deprecated". Oh, and this description is longer than the fix. I wish fixing all bugs were this easy.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 04 Jul 2009 03:24:43 +0000
parents 802de68c9fc3
children df8d6f75535a
files pidgin/gtkprefs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Fri Jul 03 19:28:25 2009 +0000
+++ b/pidgin/gtkprefs.c	Sat Jul 04 03:24:43 2009 +0000
@@ -114,7 +114,7 @@
 
 	val = purple_prefs_get_int(key);
 
-	adjust = gtk_adjustment_new(val, min, max, 1, 1, 1);
+	adjust = gtk_adjustment_new(val, min, max, 1, 1, 0);
 	spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjust), 1, 0);
 	g_object_set_data(G_OBJECT(spin), "val", (char *)key);
 	if (max < 10000)