Builder.addCallbackSymbol

Adds the @callback_symbol to the scope of @builder under the given @callback_name.

Using this function overrides the behavior of gtk_builder_connect_signals() for any callback symbols that are added. Using this method allows for better encapsulation as it does not require that callback symbols be declared in the global namespace.

class Builder
void
addCallbackSymbol

Parameters

callbackName string

The name of the callback, as expected in the XML

callbackSymbol GCallback

The callback pointer

Meta

Since

3.10