chiark / gitweb /
Changes necessary to allow saving of core images with clg.
[clg] / gtk / gtk.lisp
index 657655f1a354c99acf586ed7d4952c496372af69..a672946243e56c11f602698e05cdca524374a3e3 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.38 2005-02-27 12:37:01 espen Exp $
 
 
 (in-package "GTK")
@@ -62,6 +62,17 @@ (defun clg-init (&optional display)
       (setq *max-event-to-usec* 1000))))
 
 
+;;; Misc
+
+(defbinding grab-add () nil
+  (widget widget))
+
+(defbinding grab-get-current () widget)
+
+(defbinding grab-remove () nil
+  (widget widget))
+
+
 ;;; About dialog
 
 #+gtk2.6
@@ -1948,10 +1959,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))