add_controller
Description:
Adds an event controller to the widget.
The event controllers of a widget handle the events that are propagated to the widget.
You will usually want to call this function right after creating any kind of [class@Gtk.EventController].
Parameters:
this |
a widget |
controller |
an event controller that hasn't been added to a widget yet |