diff gtk3/dw.c @ 1022:fa1a826348b3

Change the default range of spinbuttons to be -65536 to 65536 on GTK. Also allow the text passed to set the default value.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 18 May 2011 08:14:14 +0000
parents 0469e278453c
children 2c2fcfeeffcc
line wrap: on
line diff
--- a/gtk3/dw.c	Wed May 18 07:26:12 2011 +0000
+++ b/gtk3/dw.c	Wed May 18 08:14:14 2011 +0000
@@ -3822,7 +3822,7 @@
    int _locked_by_me = FALSE;
 
    DW_MUTEX_LOCK;
-   adj = (GtkAdjustment *)gtk_adjustment_new (1.0, 0.0, 100.0, 1.0, 5.0, 0.0);
+   adj = (GtkAdjustment *)gtk_adjustment_new ((float)atoi(text), -65536.0, 65536.0, 1.0, 5.0, 0.0);
    tmp = gtk_spin_button_new (adj, 0, 0);
    gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(tmp), TRUE);
    gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(tmp), TRUE);