chiark / gitweb /
Added dependency to the gtk system and a couple of bug fixes
authorespen <espen>
Thu, 21 Apr 2005 12:30:23 +0000 (12:30 +0000)
committerespen <espen>
Thu, 21 Apr 2005 12:30:23 +0000 (12:30 +0000)
examples/testgtk.lisp

index ab958092419391b3a2314c90f92d3df9c502e974..15be2be8728b4af010611118662b06c8e1002fd6 100644 (file)
 ;; 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: testgtk.lisp,v 1.28 2005-04-19 08:17:06 espen Exp $
+;; $Id: testgtk.lisp,v 1.29 2005-04-21 12:30:23 espen Exp $
+
+#+sbcl(require :gtk)
+#+cmucl(asdf:oos 'asdf:load-op :gtk)
 
 (defpackage "TESTGTK"
   (:use "COMMON-LISP" "GTK"))
@@ -1255,12 +1258,13 @@ (defun create-shape-icon (xpm-file x y px py type root-window destroy)
             (grab-add window)
             (gdk:pointer-grab (widget-window window) 
              :events '(:button-release :button-motion :pointer-motion-hint)
-             :owner-events t :time event))))
+             :owner-events t))))
 
       (signal-connect window 'button-release-event
        #'(lambda (event)
+          (declare (ignore event))
           (grab-remove window)
-          (gdk:pointer-ungrab event)))
+          (gdk:pointer-ungrab)))
        
       (signal-connect window 'motion-notify-event
        #'(lambda (event)