SnippetManager.getSnippet

gtksource.snippet.Snippet getSnippet(string group, string languageId, string trigger)

Queries the known snippets for the first matching group, language_id, and/or trigger.

If group or language_id are null, they will be ignored.

Parameters

groupa group name or null
languageIda #GtkSourceLanguage:id or null
triggerthe trigger for the snippet

Returns

a #GtkSourceSnippet or null if no

matching snippet was found.