ShortcutController.newForModel

Creates a new shortcut controller that takes its shortcuts from the given list model.

A controller created by this function does not let you add or remove individual shortcuts using the shortcut controller api, but you can change the contents of the model.

Parameters

model gio.list_model.ListModel

a gio.list_model.ListModel containing shortcuts

Return Value

Type: gtk.shortcut_controller.ShortcutController

a newly created shortcut controller