--- src/xsane-front-gtk.c.orig	2010-03-25 22:47:14.000000000 +0100
+++ src/xsane-front-gtk.c	2010-03-25 22:49:40.000000000 +0100
@@ -1163,6 +1163,7 @@
   /* spinbutton */
   if (preferences.show_range_mode & 4)
   {
+    g_object_set(*data, "page-size", 0.0, (void*)NULL);
     spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(*data), 0, digits);
     if (preferences.show_range_mode & 3) /* slider also visible */
     {
@@ -1255,6 +1256,7 @@
   /* spinbutton */
   if (preferences.show_range_mode & 4)
   {
+    g_object_set(*data, "page-size", 0.0, (void*)NULL);
     spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(*data), 0, digits);
     gtk_widget_set_size_request(spinbutton, 60, -1);
     xsane_back_gtk_set_tooltip(xsane.tooltips, spinbutton, desc);
--- src/xsane-back-gtk.c.orig	2007-08-13 09:49:34.000000000 +0200
+++ src/xsane-back-gtk.c	2010-03-25 22:42:07.000000000 +0100
@@ -2028,6 +2028,7 @@
       digits = 5;
     }
 #endif
+    g_object_set(elem->data, "page-size", 0.0, (void*)NULL);
     spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(elem->data), 0, digits);
 
     if (preferences.show_range_mode & 3) /* slider also visible */
