~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
13b2456
)
Event classes registered with type number of base event class
author
espen
<espen>
Sun, 31 Oct 2004 11:53:30 +0000
(11:53 +0000)
committer
espen
<espen>
Sun, 31 Oct 2004 11:53:30 +0000
(11:53 +0000)
gdk/gdkevents.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gdk/gdkevents.lisp
b/gdk/gdkevents.lisp
index
f0d0c3a
..
fe7e357
100644
(file)
--- a/
gdk/gdkevents.lisp
+++ b/
gdk/gdkevents.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
;; 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: gdkevents.lisp,v 1.
3 2001-10-21 23:02:4
0 espen Exp $
+;; $Id: gdkevents.lisp,v 1.
4 2004-10-31 11:53:3
0 espen Exp $
(in-package "GDK")
(in-package "GDK")
@@
-67,12
+67,12
@@
((event-type :reader event-class-type)))
((event-type :reader event-class-type)))
- (defmethod shared-initialize ((class event-class) names
- &rest initargs &key type)
- (declare (ignore initargs names))
+ (defmethod shared-initialize ((class event-class) names &key name type)
(call-next-method)
(setf (slot-value class 'event-type) (first type))
(call-next-method)
(setf (slot-value class 'event-type) (first type))
- (setf (gethash (first type) *event-classes*) class))
+ (setf (gethash (first type) *event-classes*) class)
+ (let ((class-name (or name (class-name class))))
+ (register-type class-name 'event)))
(defmethod validate-superclass
(defmethod validate-superclass