From: espen Date: Wed, 12 Jan 2005 13:26:03 +0000 (+0000) Subject: Bug fix X-Git-Tag: clg-0-90~114 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/3330adc9c1f467dceb8ef362e63aee00bd105e46?ds=sidebyside Bug fix --- diff --git a/glib/gobject.lisp b/glib/gobject.lisp index 5445423..4744d5a 100644 --- a/glib/gobject.lisp +++ b/glib/gobject.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: gobject.lisp,v 1.27 2005/01/03 16:40:45 espen Exp $ +;; $Id: gobject.lisp,v 1.28 2005/01/12 13:26:03 espen Exp $ (in-package "GLIB") @@ -345,9 +345,9 @@ (defun default-slot-accessor (class-name slot-name type) (if (eq type 'boolean) "-P" "")))) -(defun slot-definition-from-property (class property &optional args) +(defun slot-definition-from-property (class property &optional slot-name args) (with-slots (name flags value-type documentation) property - (let* ((slot-name (default-slot-name name)) + (let* ((slot-name (or slot-name (default-slot-name name))) (slot-type (or (getf args :type) (type-from-number value-type) value-type)) (accessor (default-slot-accessor class slot-name slot-type))) @@ -405,7 +405,7 @@ (defun slot-definitions (class properties slots) ((getf (rest slot) :merge) (setf (rest slot) - (rest (slot-definition-from-property class property (rest slot))))))) + (rest (slot-definition-from-property class property (first slot) (rest slot))))))) (delete-if #'(lambda (slot) (getf (rest slot) :ignore)) slots))