Next: , Previous: g-type-from-object, Up: GObject low-level


9.3 g-object-call-get-property

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

Retrieves the value of a property property-name of object pointed to by object-ptr. property-type specifies the type of a property; it may be omitted.

Example:

     (g-object-call-constructor "GtkButton" '("label" "use-underline") '("Hello" t) '("gchararray" "gboolean"))
     =>
     #.(SB-SYS:INT-SAP #X006D8900)
     
     (g-object-call-get-property * "label")
     =>
     "Hello"
     
     (g-object-call-get-property ** "use-underline")
     =>
     T