Package: gobject

Function g-object-property

Lambda List

g-object-property (object name &optional gtype)

Syntax

(g-object-property object name gtype) => value
(setf (g-object-property object name gtype) value)

Arguments

object -- a g-object instance
name -- a string with the name of the property
gtype -- the optional g-type type ID of the property
value -- a value for the property

Details

Accessor of the property of an object.

Example

Setting and retrieving the gtk-application-prefer-dark-theme setting.
(defvar settings (gtk-settings-default))
=> SETTINGS
(setf (g-object-property settings "gtk-application-prefer-dark-theme") t)
=> T
(g-object-property settings "gtk-application-prefer-dark-theme")
=> T    
 

See also

2021-9-11