X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/d79b34133bf34d6d4c933c4de7039c575d7c5e12..ecf3b9d80b88d9e2a18d8a03bc4b3ca1b5ec1f5b:/gtk/gtk.lisp diff --git a/gtk/gtk.lisp b/gtk/gtk.lisp index 56dbe69..3356515 100644 --- a/gtk/gtk.lisp +++ b/gtk/gtk.lisp @@ -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))