GtkSource.SnippetContext.get_variable

### Method

# GtkSource SnippetContextget_variable

#### Declaration [src]

    const gchar*
    gtk_source_snippet_context_get_variable (
      GtkSourceSnippetContext* self,
      const gchar* key
    )

#### Description [src]

Gets the current value for a variable named `key`.

#### Parameters

`key` | `const gchar*`
| The name of the variable.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `const gchar*`
| The value for the variable, or `NULL`.
| The data is owned by the instance.
| The return value can be `NULL`.
| The value is a NUL terminated UTF-8 string.