Widget.observeControllers

gio.list_model.ListModel observeControllers()

Returns a [gio.list_model.ListModel] to track the [gtk.event_controller.EventController]s of widget.

Calling this function will enable extra internal bookkeeping to track controllers and emit signals on the returned listmodel. It may slow down operations a lot.

Applications should try hard to avoid calling this function because of the slowdowns.

Returns

a [gio.list_model.ListModel] tracking widget's controllers