chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37e1312
)
Added class definition for event type GRAB-BROKEN
author
espen
<espen>
Tue, 18 Mar 2008 14:52:54 +0000
(14:52 +0000)
committer
espen
<espen>
Tue, 18 Mar 2008 14:52:54 +0000
(14:52 +0000)
gdk/gdkevents.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gdk/gdkevents.lisp
b/gdk/gdkevents.lisp
index f486bfac6a783dc4f864cdd750602e794349e637..a0be53e45808c559c1e3d2173ba14df43cbba5fe 100644
(file)
--- a/
gdk/gdkevents.lisp
+++ b/
gdk/gdkevents.lisp
@@
-20,7
+20,7
@@
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: gdkevents.lisp,v 1.1
3 2008-01-07 16:02:23
espen Exp $
+;; $Id: gdkevents.lisp,v 1.1
4 2008-03-18 14:52:54
espen Exp $
(in-package "GDK")
(in-package "GDK")
@@
-47,7
+47,9
@@
(defmethod shared-initialize ((class event-class) names &key name event-type)
(let ((reader (reader-function 'event-type)))
(defun %event-class (location)
(let ((reader (reader-function 'event-type)))
(defun %event-class (location)
- (gethash (funcall reader location 0) *event-classes*)))
+ (or
+ (gethash (funcall reader location 0) *event-classes*)
+ (error "No class defined for event type: ~S" (funcall reader location 0)))))
(defmethod make-proxy-instance :around ((class event-class) location
&rest initargs)
(defmethod make-proxy-instance :around ((class event-class) location
&rest initargs)
@@
-559,3
+561,16
@@
(defclass owner-change-event (event)
(:metaclass event-class)
(:event-type :owner-change))
(:metaclass event-class)
(:event-type :owner-change))
+(defclass grab-broken-event (event)
+ ((keyboard
+ :allocation :alien
+ :accessor event-keyboard
+ :initarg :keyboard
+ :type boolean)
+ (implicit
+ :allocation :alien
+ :accessor event-implicit
+ :initarg :implicit
+ :type boolean))
+ (:metaclass event-class)
+ (:event-type :grab-broken))