[gnome-commander/gcmd-1-2-8] Fix for GtkSpinButton "adjustment with non-zero page size" deprecation message



commit 29b3f91c6cd1b8062ed9c5d95ef2515bb24147f5
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Jan 25 23:44:15 2011 +0100

    Fix for GtkSpinButton "adjustment with non-zero page size" deprecation message

 libgcmd/libgcmd-widget-factory.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgcmd/libgcmd-widget-factory.cc b/libgcmd/libgcmd-widget-factory.cc
index 111a9df..fa57d4a 100644
--- a/libgcmd/libgcmd-widget-factory.cc
+++ b/libgcmd/libgcmd-widget-factory.cc
@@ -358,7 +358,7 @@ create_spin (GtkWidget *parent, gchar *name, gint min, gint max, gint value)
     GtkObject *adj;
     GtkWidget *spin;
 
-    adj = gtk_adjustment_new (value, min, max, 1, 10, 10);
+    adj = gtk_adjustment_new (value, min, max, 1, 10, 0);
     spin = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 1, 0);
     gtk_widget_ref (spin);
     gtk_object_set_data_full (GTK_OBJECT (parent), name, spin,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]