The GTK.Editable class is a base class for widgets for editing text,
such as W(Entry) and W(Text). It cannot be instantiated by
itself. The editable class contains functions for generically
manipulating an editable widget, a large number of action signals
used for key bindings, and several signals that an application can
connect to to modify the behavior of a widget.
Signals:
activate
Indicates that the user has activated the widget in some
fashion. Generally, this will be done with a keystroke. (The
default binding for this action is Return for GTK.Entry and
Control-Return for GTK.Text.
changed
Called when the text in the edit area is changed
copy_clipboard
An action signal. Causes the characters in the current selection to
be copied to the clipboard.
cut_clipboard
An action signal. Causes the characters in the current selection to
be copied to the clipboard and then deleted from the widget.
delete_text
This signal is emitted when text is deleted from the widget by the
user. The default handler for this signal will normally be
responsible for inserting the text, so by connecting to this signal
and then stopping the signal with signal_emit_stop(), it is
possible to modify the inserted text, or prevent it from being
inserted entirely. The start_pos and end_pos parameters are
interpreted as for delete_text()
insert_text
This signal is emitted when text is inserted into the widget by the
user. The default handler for this signal will normally be
responsible for inserting the text, so by connecting to this signal
and then stopping the signal with signal_emit_stop(), it is
possible to modify the inserted text, or prevent it from being
inserted entirely.
kill_char
An action signal. Delete a single character.
kill_line
An action signal. Delete a single line.
kill_word
n action signal. Delete a single word.
move_cursor
An action signal. Move the cursor position.
move_page
An action signal. Move the cursor by pages.
move_to_column
An action signal. Move the cursor to the given column.
move_to_row
An action signal. Move the cursor to the given row.
move_word
An action signal. Move the cursor by words.
paste_clipboard
An action signal. Causes the contents of the clipboard to be pasted
into the editable widget at the current cursor position.
set_editable
Determines if the user can edit the text in the editable widget or
not. This is meant to be overriden by child classes and should not
generally be useful to applications.