set_current_object


Description:

public void set_current_object (Object? current_object)

Sets the current object for the this.

The current object can be thought of as the `this` object that the builder is working for and will often be used as the default object when an object is optional.

[[email protected]_template] for example will set the current object to the widget the template is inited for. For functions like [ [email protected]_from_resource], the current object will be null.

Parameters:

this

a `GtkBuilder`

current_object

the new current object




2022 vala-language.org