chiark / gitweb /
Changed arguments to SPIN-BUTTON-SPIN
[clg] / gtk / gtk.lisp
index 657655f1a354c99acf586ed7d4952c496372af69..6cd1d0e617e13a5a59b54380895d4448c48a5e74 100644 (file)
@@ -15,7 +15,7 @@
 ;; License along with this library; if not, write to the Free Software
 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-;; $Id: gtk.lisp,v 1.35 2005-02-22 23:07:35 espen Exp $
+;; $Id: gtk.lisp,v 1.36 2005-02-25 23:58:56 espen Exp $
 
 
 (in-package "GTK")
@@ -1948,10 +1948,16 @@ (defbinding spin-button-get-range () nil
 (defun spin-button-value-as-int (spin-button)
   (round (spin-button-value spin-button)))
 
-(defbinding spin-button-spin () nil
+(defbinding %spin-button-spin () nil
   (spin-button spin-button)
   (direction spin-type)
-  (increment single-float))
+  (increment double-float))
+
+(defun spin-button-spin (spin-button value)
+  (etypecase value
+    (real (%spin-button-spin spin-button :spin-user-defined value))
+    (spin-type (%spin-button-spin spin-button value 0))))
+
 
 (defbinding spin-button-update () nil
   (spin-button spin-button))