SnippetManager.listMatching

Queries the known snippets for those matching group, language_id, and/or trigger_prefix.

If any of these are null, they will be ignored when filtering the available snippets.

The gio.list_model.ListModel only contains information about the available snippets until gio.list_model.ListModel.getItem is called for a specific snippet. This helps reduce the number of gobject.object.ObjectG's that are created at runtime to those needed by the calling application.

class SnippetManager
listMatching
(
string group = null
,
string languageId = null
,
string triggerPrefix = null
)

Parameters

group string

a group name or null

languageId string

a #GtkSourceLanguage:id or null

triggerPrefix string

a prefix for a trigger to activate

Return Value

Type: gio.list_model.ListModel

a #GListModel of #GtkSourceSnippet.