Previous: g-object-call-get-property, Up: GObject low-level


9.4 g-object-call-set-property

— Function: g-object-call-set-property
     (g-object-call-set-property object-ptr property-name new-value &optional property-type)
object-ptr
A foreign pointer to a GObject instance
property-name
A string naming the property
new-value
A new value of a property
property-type
Optional GType designator specifying the type of a property

Sets the property value of property property-name of object object-ptr to new-value.

Example:

     (g-object-call-constructor "GtkButton" nil nil)
     =>
     #.(SB-SYS:INT-SAP #X006D8B40)
     
     (g-object-call-set-property * "label" "Hello")
     =>
     ; No value
     
     (g-object-call-get-property ** "label")
     =>
     "Hello"