Interface

Gtk-3.0GtkTextBufferSignalSignatures

interface SignalSignatures {
    "apply-tag": (
        arg0: Gtk.TextTag,
        arg1: Gtk.TextIter,
        arg2: Gtk.TextIter,
    ) => void;
    "begin-user-action": () => void;
    changed: () => void;
    "delete-range": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void;
    "end-user-action": () => void;
    "insert-child-anchor": (
        arg0: Gtk.TextIter,
        arg1: Gtk.TextChildAnchor,
    ) => void;
    "insert-pixbuf": (arg0: Gtk.TextIter, arg1: GdkPixbuf.Pixbuf) => void;
    "insert-text": (arg0: Gtk.TextIter, arg1: string, arg2: number) => void;
    "mark-deleted": (arg0: Gtk.TextMark) => void;
    "mark-set": (arg0: Gtk.TextIter, arg1: Gtk.TextMark) => void;
    "modified-changed": () => void;
    notify: (arg0: GObject.ParamSpec) => void;
    "notify::copy-target-list": (pspec: GObject.ParamSpec) => void;
    "notify::cursor-position": (pspec: GObject.ParamSpec) => void;
    "notify::has-selection": (pspec: GObject.ParamSpec) => void;
    "notify::paste-target-list": (pspec: GObject.ParamSpec) => void;
    "notify::tag-table": (pspec: GObject.ParamSpec) => void;
    "notify::text": (pspec: GObject.ParamSpec) => void;
    "paste-done": (arg0: Gtk.Clipboard) => void;
    "remove-tag": (
        arg0: Gtk.TextTag,
        arg1: Gtk.TextIter,
        arg2: Gtk.TextIter,
    ) => void;
}

Hierarchy (View Summary)

Index

Properties

"apply-tag": (arg0: Gtk.TextTag, arg1: Gtk.TextIter, arg2: Gtk.TextIter) => void

The ::apply-tag signal is emitted to apply a tag to a range of text in a Gtk.TextBuffer. Applying actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them).

See also: gtk_text_buffer_apply_tag(), gtk_text_buffer_insert_with_tags(), gtk_text_buffer_insert_range().

"begin-user-action": () => void

The ::begin-user-action signal is emitted at the beginning of a single user-visible operation on a Gtk.TextBuffer.

See also: gtk_text_buffer_begin_user_action(), gtk_text_buffer_insert_interactive(), gtk_text_buffer_insert_range_interactive(), gtk_text_buffer_delete_interactive(), gtk_text_buffer_backspace(), gtk_text_buffer_delete_selection().

changed: () => void

The ::changed signal is emitted when the content of a Gtk.TextBuffer has changed.

"delete-range": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void

The ::delete-range signal is emitted to delete a range from a Gtk.TextBuffer.

Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them). The default signal handler revalidates the start and end iters to both point to the location where text was deleted. Handlers which run after the default handler (see g_signal_connect_after()) do not have access to the deleted text.

See also: gtk_text_buffer_delete().

"end-user-action": () => void

The ::end-user-action signal is emitted at the end of a single user-visible operation on the Gtk.TextBuffer.

See also: gtk_text_buffer_end_user_action(), gtk_text_buffer_insert_interactive(), gtk_text_buffer_insert_range_interactive(), gtk_text_buffer_delete_interactive(), gtk_text_buffer_backspace(), gtk_text_buffer_delete_selection(), gtk_text_buffer_backspace().

"insert-child-anchor": (arg0: Gtk.TextIter, arg1: Gtk.TextChildAnchor) => void

The ::insert-child-anchor signal is emitted to insert a Gtk.TextChildAnchor in a Gtk.TextBuffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted anchor.

See also: gtk_text_buffer_insert_child_anchor().

"insert-pixbuf": (arg0: Gtk.TextIter, arg1: GdkPixbuf.Pixbuf) => void

The ::insert-pixbuf signal is emitted to insert a GdkPixbuf.Pixbuf in a Gtk.TextBuffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted pixbuf.

See also: gtk_text_buffer_insert_pixbuf().

"insert-text": (arg0: Gtk.TextIter, arg1: string, arg2: number) => void

The ::insert-text signal is emitted to insert text in a Gtk.TextBuffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text.

See also: gtk_text_buffer_insert(), gtk_text_buffer_insert_range().

"mark-deleted": (arg0: Gtk.TextMark) => void

The ::mark-deleted signal is emitted as notification after a Gtk.TextMark is deleted.

See also: gtk_text_buffer_delete_mark().

"mark-set": (arg0: Gtk.TextIter, arg1: Gtk.TextMark) => void

The ::mark-set signal is emitted as notification after a Gtk.TextMark is set.

See also: gtk_text_buffer_create_mark(), gtk_text_buffer_move_mark().

"modified-changed": () => void

The ::modified-changed signal is emitted when the modified bit of a Gtk.TextBuffer flips.

See also: gtk_text_buffer_set_modified().

"notify::copy-target-list": (pspec: GObject.ParamSpec) => void
"notify::cursor-position": (pspec: GObject.ParamSpec) => void
"notify::has-selection": (pspec: GObject.ParamSpec) => void
"notify::paste-target-list": (pspec: GObject.ParamSpec) => void
"notify::tag-table": (pspec: GObject.ParamSpec) => void
"notify::text": (pspec: GObject.ParamSpec) => void
"paste-done": (arg0: Gtk.Clipboard) => void

The paste-done signal is emitted after paste operation has been completed. This is useful to properly scroll the view to the end of the pasted text. See gtk_text_buffer_paste_clipboard() for more details.

2.16

"remove-tag": (
    arg0: Gtk.TextTag,
    arg1: Gtk.TextIter,
    arg2: Gtk.TextIter,
) => void

The ::remove-tag signal is emitted to remove all occurrences of tag from a range of text in a Gtk.TextBuffer. Removal actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them).

See also: gtk_text_buffer_remove_tag().

Properties - Inherited from GObject

notify: (arg0: GObject.ParamSpec) => void

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.

Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with GObject.ParamFlags.EXPLICIT_NOTIFY, then any call to g_object_set_property() results in ::notify being emitted, even if the new value is the same as the old. If they did pass GObject.ParamFlags.EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

g_signal_connect (text_view->buffer, "notify::paste-target-list",
G_CALLBACK (gtk_text_view_target_list_notify),
text_view)

It is important to note that you must use [canonical parameter names][class@GObject.ParamSpec#parameter-names] as detail strings for the notify signal.