SignalActionRun Lastchange-SignalActionRun Lastchange-Keybinding signal to edit a number at the current cursor position.
SignalActionRun Lastjoin-Keybinding signal to join the lines currently selected.
SignalRun Lastline-Emitted when a line mark has been activated (for instance when there was a button press in the line marks gutter).
You can use iter to determine on which line the activation took place.
SignalActionRun Lastmove-The signal is a keybinding which gets emitted when the user initiates moving a line.
The default binding key is Alt+Up/Down arrow. And moves the currently selected lines, or the current line up or down by one line.
SignalActionRun Lastmove-Keybinding signal to move the cursor to the matching bracket.
SignalActionRun Lastmove-The signal is a keybinding which gets emitted when the user initiates moving a word.
The default binding key is Alt+Left/Right Arrow and moves the current selection, or the current word by one word.
SignalRun Lastpush-The signal is emitted to insert a new snippet into the view.
If another snippet was active, it will be paused until all focus positions of snippet have been exhausted.
location will be updated to point at the end of the snippet.
SignalActionRun Lastshow-The signal is a key binding signal which gets
emitted when the user requests a completion, by pressing
This will create a CompletionContext with the activation type as GtkSource.CompletionActivation.USER_REQUESTED.
Applications should not connect to it, but may emit it with GObject.signal_emit_by_name if they need to activate the completion by another means, for example with another key binding or a menu entry.
SignalRun Lastsmart-Emitted when a the cursor was moved according to the smart home end setting.
The signal is emitted after the cursor is moved, but
during the Gtk.TextView::move-cursor action. This can be used to find
out whether the cursor was moved by a normal home/end or by a smart
home/end.
SignalActionRun LastbackspaceGets emitted when the user asks for it.
The ::backspace signal is a keybinding signal.
The default bindings for this signal are Backspace and Shift+Backspace.
SignalActionRun Lastcopy-Gets emitted to copy the selection to the clipboard.
The ::copy-clipboard signal is a keybinding signal.
The default bindings for this signal are Ctrl+c and Ctrl+Insert.
SignalActionRun Lastcut-Gets emitted to cut the selection to the clipboard.
The ::cut-clipboard signal is a keybinding signal.
The default bindings for this signal are Ctrl+x and Shift+Delete.
SignalActionRun Lastdelete-Gets emitted when the user initiates a text deletion.
The ::delete-from-cursor signal is a keybinding signal.
If the type is Gtk.DeleteType.CHARS, GTK deletes the selection
if there is one, otherwise it deletes the requested number
of characters.
The default bindings for this signal are Delete for deleting a character, Ctrl+Delete for deleting a word and Ctrl+Backspace for deleting a word backwards.
SignalRun CleanupdestroySignals that all holders of a reference to the widget should release the reference that they hold.
May result in finalization of the widget if all references are released.
This signal is not suitable for saving widget state.
SignalRun Firstdirection-Emitted when the text direction of a widget changes.
SignalRun Lastextend-Emitted when the selection needs to be extended at location.
SignalRun FirsthideEmitted when widget is hidden.
SignalActionRun Lastinsert-Gets emitted when the user initiates the insertion of a fixed string at the cursor.
The ::insert-at-cursor signal is a keybinding signal.
This signal has no default bindings.
SignalActionRun Lastinsert-Gets emitted to present the Emoji chooser for the text_view.
The ::insert-emoji signal is a keybinding signal.
The default bindings for this signal are Ctrl+. and Ctrl+;
SignalRun Lastkeynav-Emitted if keyboard navigation fails.
See Gtk.Widget.keynav_failed for details.
SignalRun FirstmapEmitted when widget is going to be mapped.
A widget is mapped when the widget is visible (which is controlled with Gtk.Widget.visible) and all its parents up to the toplevel widget are also visible.
The ::map signal can be used to determine whether a widget will be drawn,
for instance it can resume an animation that was stopped during the
emission of Gtk.Widget::unmap.
SignalRun Lastmnemonic-Emitted when a widget is activated via a mnemonic.
The default handler for this signal activates widget if group_cycling
is false, or just makes widget grab focus if group_cycling is true.
SignalActionRun Lastmove-Gets emitted when the user initiates a cursor movement.
The ::move-cursor signal is a keybinding signal.
If the cursor is not visible in text_view, this signal causes
the viewport to be moved instead.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name() if they need to control the cursor
programmatically.
The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without it does not. There are too many key combinations to list them all here.
SignalActionRun Lastmove-Emitted when the focus is moved.
The ::move-focus signal is a keybinding signal.
The default bindings for this signal are Tab to move forward, and Shift+Tab to move backward.
SignalActionRun Lastmove-Gets emitted to move the viewport.
The ::move-viewport signal is a keybinding signal, which can be bound to key combinations to allow the user to move the viewport, i.e. change what part of the text view is visible in a containing scrolled window.
There are no default bindings for this signal.
SignalDetailedActionRun FirstnotifyThe 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.
SignalActionRun Lastpaste-Gets emitted to paste the contents of the clipboard into the text view.
The ::paste-clipboard signal is a keybinding signal.
The default bindings for this signal are Ctrl+v and Shift+Insert.
SignalActionRun Lastpreedit-Emitted when preedit text of the active IM changes.
If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal.
This signal is only emitted if the text at the given position is actually editable.
SignalRun Lastquery-Emitted when the widget’s tooltip is about to be shown.
This happens when the Gtk.Widget.has_tooltip property
is true and the hover timeout has expired with the cursor hovering
above widget; or emitted when widget got focus in keyboard mode.
Using the given coordinates, the signal handler should determine
whether a tooltip should be shown for widget. If this is the case
true should be returned, false otherwise. Note that if keyboard_mode
is true, the values of x and y are undefined and should not be used.
The signal handler is free to manipulate tooltip with the therefore
destined function calls.
SignalRun FirstrealizeEmitted when widget is associated with a Gdk.Surface.
This means that Gtk.Widget.realize has been called or the widget has been mapped (that is, it is going to be drawn).
SignalActionRun Lastselect-Gets emitted to select or unselect the complete contents of the text view.
The ::select-all signal is a keybinding signal.
The default bindings for this signal are Ctrl+a and Ctrl+/ for selecting and Shift+Ctrl+a and Ctrl+</kbd> for unselecting.
SignalActionRun Lastset-Gets emitted when the user initiates settings the "anchor" mark.
The ::set-anchor signal is a keybinding signal which gets emitted when the user initiates setting the "anchor" mark. The "anchor" mark gets placed at the same position as the "insert" mark.
This signal has no default bindings.
SignalRun FirstshowEmitted when widget is shown.
SignalRun Firststate-Emitted when the widget state changes.
SignalActionRun Lasttoggle-Gets emitted to toggle the cursor-visible property.
The ::toggle-cursor-visible signal is a keybinding signal.
The default binding for this signal is F7.
SignalActionRun Lasttoggle-Gets emitted to toggle the overwrite mode of the text view.
The ::toggle-overwrite signal is a keybinding signal.
The default binding for this signal is Insert.
SignalRun FirstunmapEmitted when widget is going to be unmapped.
A widget is unmapped when either it or any of its parents up to the toplevel widget have been set as hidden.
As ::unmap indicates that a widget will not be shown any longer,
it can be used to, for example, stop an animation on the widget.
SignalRun LastunrealizeEmitted when the Gdk.Surface associated with widget is destroyed.
This means that Gtk.Widget.unrealize has been called or the widget has been unmapped (that is, it is going to be hidden).
Keybinding signal to change case of the text at the current cursor position.