Method
GtkSourceBuffercreate_source_tag
Declaration
GtkTextTag*
gtk_source_buffer_create_source_tag (
GtkSourceBuffer* buffer,
const gchar* tag_name,
const gchar* first_property_name,
...
)
Description
In short, this is the same function as gtk_text_buffer_create_tag()
but
instead of creating a GtkTextTag
, this function creates a GtkSourceTag
.
This function creates a GtkSourceTag
and adds it to the tag table for
buffer
. Equivalent to calling gtk_text_tag_new()
and then adding the tag to
the buffer’s tag table. The returned tag is owned by the buffer’s tag table,
so the ref count will be equal to one.
If tag_name
is NULL
, the tag is anonymous.
If tag_name
is non-NULL
, a tag called tag_name
must not already
exist in the tag table for this buffer.
The first_property_name
argument and subsequent arguments are a list
of properties to set on the tag, as with g_object_set()
.
Parameters
tag_name |
const gchar* |
Name of the new tag, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
first_property_name |
const gchar* |
Name of first property to set, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
... |
|
|
Return value
Returns: | GtkTextTag* |
A new |
|
The data is owned by the instance. |