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:
895c9a9
)
Reverted a previous change which didn't work
author
espen
<espen>
Sat, 12 Mar 2005 19:38:12 +0000
(19:38 +0000)
committer
espen
<espen>
Sat, 12 Mar 2005 19:38:12 +0000
(19:38 +0000)
glib/gtype.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/gtype.lisp
b/glib/gtype.lisp
index f8923501e8664e42ff22bb2c75a187159e89a0ea..8c4334778798f6a39d091904f6218c593040a91c 100644
(file)
--- a/
glib/gtype.lisp
+++ b/
glib/gtype.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: gtype.lisp,v 1.
29 2005-03-11 20:16:07
espen Exp $
+;; $Id: gtype.lisp,v 1.
30 2005-03-12 19:38:12
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-237,7
+237,7
@@
(defclass ginstance-class (proxy-class)
()))
()))
-(defmethod shared-initialize ((class ginstance-class) names &key name gtype)
+(defmethod shared-initialize ((class ginstance-class) names &
rest initargs &
key name gtype)
(declare (ignore names))
(let* ((class-name (or name (class-name class)))
(type-number
(declare (ignore names))
(let* ((class-name (or name (class-name class)))
(type-number
@@
-245,9
+245,10
@@
(defmethod shared-initialize ((class ginstance-class) names &key name gtype)
(find-type-number class-name)
(register-type class-name
(or (first gtype) (default-type-init-name class-name))))))
(find-type-number class-name)
(register-type class-name
(or (first gtype) (default-type-init-name class-name))))))
- (call-next-method)
- (when (slot-boundp class 'size)
- (setf (slot-value class 'size) (type-instance-size type-number)))))
+ (if (getf initargs :size)
+ (call-next-method)
+ (let ((size (type-instance-size type-number)))
+ (apply #'call-next-method class names :size (list size) initargs)))))
(defmethod validate-superclass ((class ginstance-class) (super standard-class))
(defmethod validate-superclass ((class ginstance-class) (super standard-class))