Class
GtkSourceSnippetContext
Description [src]
final class GtkSource.SnippetContext : GObject.Object {
/* No available fields */
}
Context for expanding GtkSourceSnippetChunk
.
This class is currently used primary as a hashtable. However, the longer
term goal is to have it hold onto a GjsContext
as well as other languages
so that GtkSourceSnippetChunk
can expand themselves by executing
script within the context.
The GtkSourceSnippet
will build the context and then expand each of the
chunks during the insertion/edit phase.
Constructors
gtk_source_snippet_context_new
Creates a new GtkSourceSnippetContext
.
Instance methods
gtk_source_snippet_context_clear_variables
Removes all variables from the context.
gtk_source_snippet_context_expand
gtk_source_snippet_context_get_variable
Gets the current value for a variable named key
.
gtk_source_snippet_context_set_constant
Sets a constatnt within the context.
gtk_source_snippet_context_set_line_prefix
gtk_source_snippet_context_set_tab_width
gtk_source_snippet_context_set_use_spaces
gtk_source_snippet_context_set_variable
Sets a variable within the context.
Signals
GtkSource.SnippetContext::changed
The signal is emitted when a change has been discovered in one of the chunks of the snippet which has caused a variable or other dynamic data within the context to have changed.
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.