ShortcutController.for_model


Description:

[ CCode ( has_construct_function = false , type = "GtkEventController*" ) ]
public ShortcutController.for_model (ListModel model)

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

a `GListModel` containing shortcuts

Returns:

a newly created shortcut controller




2022 vala-language.org