GtkWidget::activate

bool activate();

Activates the widget if it is activatable, such as GtkButton or GtkMenuItem. Activation is what happens when the Enter key is pressed on a focused widget.

If the widget is activatable, this method will return true, otherwise it will return false.