It derives from <GObject>.
Collects the tags in a <GtkTextBuffer>.
You may wish to begin by reading the text widget conceptual overview, which gives an overview of all the objects and data types related to the text widget and how they work together.
The <GtkTextTagTable> implementation of the
<GtkBuildable> interface supports adding tags by
specifying “tag” as the “type” attribute of a <child> element.
An example of a UI definition fragment specifying tags:
<object class="GtkTextTagTable"> <child type="tag"> <object class="GtkTextTag"/> </child> </object>
Add a tag to the table.
The tag is assigned the highest priority in the table.
tag must not be in a tag table already, and may not have the same name as an already-added tag.
Passed: a <GtkTextTagTable>.
Passed: a <GtkTextTag>.
Returned: a boolean.
#t on success.
Calls func on each tag in self, with user data data.
Note that the table may not be modified while iterating over it (you can’t add/remove tags).
Passed: a <GtkTextTagTable>.
Passed: a procedure.
a function to call on each tag
See GtkTextTagTableForeach for how it
is called.
Not passed: guile-gi supplies it.
user data
Returns the size of the table (number of tags)
Passed: a <GtkTextTagTable>.
Returned: a 32-bit integer.
number of tags in self
Look up a named tag.
Passed: a <GtkTextTagTable>.
Passed: a string.
name of a tag
Returned: a <GtkTextTag>, or #f.
The tag
Creates a new <GtkTextTagTable>.
The table contains no tags by default.
Returned: a <GtkTextTagTable>.
a new <GtkTextTagTable>
Remove a tag from the table.
If a <GtkTextBuffer> has self as its tag
table, the tag is removed from the buffer. The table’s reference to the
tag is removed, so the tag will end up destroyed if you don’t have a
reference to it.
Passed: a <GtkTextTagTable>.
Passed: a <GtkTextTag>.
Connect a handler with (connect object text-tag-table:tag-added
handler). It is called as (handler self tag).
Emitted every time a new tag is added in the
<GtkTextTagTable>.
Passed: a <GtkTextTagTable>.
Passed: a <GtkTextTag>.
the added tag.
Connect a handler with (connect object text-tag-table:tag-changed
handler). It is called as (handler self tag size-changed).
Emitted every time a tag in the
<GtkTextTagTable> changes.
Passed: a <GtkTextTagTable>.
Passed: a <GtkTextTag>.
the changed tag.
Passed: a boolean.
whether the change affects the <GtkTextView>
layout.
Connect a handler with (connect object text-tag-table:tag-removed
handler). It is called as (handler self tag).
Emitted every time a tag is removed from the
<GtkTextTagTable>.
The tag is still valid by the time the signal is emitted, but it is not associated with a tag table any more.
Passed: a <GtkTextTagTable>.
Passed: a <GtkTextTag>.
the removed tag.