2.17 <GtkShortcutManager>

Interface: <GtkShortcutManager>

An interface that is used to implement shortcut scopes.

This is important for <GtkNative> widgets that have their own surface, since the event controllers that are used to implement managed and global scopes are limited to the same native.

Examples for widgets implementing <GtkShortcutManager> are <GtkWindow> and <GtkPopover>.

Every widget that implements <GtkShortcutManager> will be used as a managed.

Virtual methods

Virtual method: shortcut-manager:do-add-controller implementor self controller

Add a <GtkShortcutController> to be managed.

To override it in a new class, give register-type #:vfuncs `((add-controller . ,procedure)). The procedure is called as (procedure self controller).

implementor

Passed: the class whose implementation to call: a class that implements <GtkShortcutManager>, or its GType number.

self

Passed: a <GtkShortcutManager>.

controller

Passed: a <GtkShortcutController>.

Virtual method: shortcut-manager:do-remove-controller implementor self controller

Remove a <GtkShortcutController> that had previously been added

To override it in a new class, give register-type #:vfuncs `((remove-controller . ,procedure)). The procedure is called as (procedure self controller).

implementor

Passed: the class whose implementation to call: a class that implements <GtkShortcutManager>, or its GType number.

self

Passed: a <GtkShortcutManager>.

controller

Passed: a <GtkShortcutController>.