Package: gtk

Function gtk-widget-template-child

Lambda List

gtk-widget-template-child (widget gtype name)

Arguments

widget -- a gtk-widget object
gtype -- the g-type type ID to get a template child for
name -- a string with the "ID" of the child defined in the template XML

Return Value

The g-object instance built in the template XML with the ID name.

Details

Fetch an object build from the template XML for gtype in this widget instance.

This will only report children which were previously declared with the gtk-widget-class-bind-template-child-full function or one of its variants.

This function is only meant to be called for code which is private to the gtype which declared the child and is meant for language bindings which cannot easily make use of the g-object structure offsets.
 

See also

2021-9-22