Package: gobject

Function gobject:object-property

Lambda List

gobject: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 -- an optional g:type-t type ID of the property
value -- a value for the property

Details

Accessor of the property of an object.

Examples

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

2024-12-14