Package: gtk

Accessor gtk:builder-current-object

Lambda List

gtk:builder-current-object (object)

Syntax

(gtk:builder-current-object object) => current
(setf (gtk:builder-current-object object) current)

Arguments

object -- a gtk:builder object
current -- a g:object instance

Details

Accessor of the current-object slot of the gtk:builder class. The gtk:builder-current-object function gets the current object for the builder. The (setf gtk:builder-current-object) function sets the current object. The current object can be thought of the object that the builder is working for and will often be used as the default object when an object is optional.

The gtk:widget-init-template function for example will set the current object to the widget the template is inited for. For functions like the gtk:builder-new-from-resource function, the current object will be nil.
 

See also

2024-9-15