set_connect_func


Description:

[ CCode ( cname = "gtk_widget_class_set_connect_func" ) ]
[ Version ( since = "3.10" ) ]
public class void set_connect_func (owned BuilderConnectFunc connect_func)

For use in language bindings, this will override the default BuilderConnectFunc to be used when parsing GtkBuilder XML from this class’s template data.

Note that this must be called from a composite widget classes class initializer after calling set_template.

Parameters:

this

A Widget

connect_func

The BuilderConnectFunc to use when connecting signals in the class template

connect_data

The data to pass to connect_func

connect_data_destroy

The DestroyNotify to free connect_data, this will only be used at class finalization time, when no classes of type widget_type are in use anymore.