Slot setters for gobject-class metaclass classes return the new value
authorDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Sat, 12 Sep 2009 12:19:44 +0000 (16:19 +0400)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Sat, 12 Sep 2009 12:19:44 +0000 (16:19 +0400)
glib/gobject.meta.lisp

index deac5b9..79ab9d0 100644 (file)
   (g-object-call-set-property (pointer object)
                               (gobject-property-effective-slot-definition-g-property-name slot)
                               new-value
-                              (gobject-effective-slot-definition-g-property-type slot)))
+                              (gobject-effective-slot-definition-g-property-type slot))
+  new-value)
 
 (defmethod slot-boundp-using-class ((class gobject-class) object (slot gobject-fn-effective-slot-definition))
   (not (null (gobject-fn-effective-slot-definition-g-getter-fn slot))))
     (funcall fn object)))
 
 (defmethod (setf slot-value-using-class) (new-value (class gobject-class) object (slot gobject-fn-effective-slot-definition))
-  (funcall (gobject-fn-effective-slot-definition-g-setter-fn slot) object new-value))
+  (funcall (gobject-fn-effective-slot-definition-g-setter-fn slot) object new-value)
+  new-value)
 
 (defmethod slot-boundp-using-class ((class gobject-class) object (slot gobject-effective-slot-definition))
   t)