activate


Description:

public bool activate ()

For widgets that can be “activated” (buttons, menu items, etc.

), this function activates them.

The activation will emit the signal set using [[email protected]_activate_signal] during class initialization.

Activation is what happens when you press <kbd>Enter</kbd> on a widget during key navigation.

If you wish to handle the activation keybinding yourself, it is recommended to use [[email protected]_shortcut] with an action created with [[email protected]].

If this isn't activatable, the function returns false.

Parameters:

this

a `GtkWidget` that’s activatable

Returns:

true if the widget was activatable




2022 vala-language.org