Package: gtk
Function gtk:widget-init-template
Lambda Listgtk:widget-init-template (widget) ArgumentsDetails
Creates and initializes child widgets defined in templates.
This function must be called in the instance initializer for any class which assigned itself a template using the gtk:widget-class-set-template
function. It is important to call this function in the instance initializer of a GtkWidget subclass. One reason is that generally derived widgets will assume that parent class composite widgets have been created in their instance initializers. Another reason is that when calling the g:object-new function on a widget with composite templates, it is important to build the composite widgets before the construct properties are set. Properties passed to the g:object-new function should take precedence over properties set in the private template XML. | See also |
2024-9-14