Synopsis#include <gtk/gtk.h> GtkTextView; enum GtkTextWindowType; GtkWidget* gtk_text_view_new (void); GtkWidget* gtk_text_view_new_with_buffer (GtkTextBuffer *buffer); void gtk_text_view_set_buffer (GtkTextView *text_view, GtkTextBuffer *buffer); GtkTextBuffer* gtk_text_view_get_buffer (GtkTextView *text_view); void gtk_text_view_scroll_to_mark (GtkTextView *text_view, GtkTextMark *mark, gdouble within_margin, gboolean use_align, gdouble xalign, gdouble yalign); gboolean gtk_text_view_scroll_to_iter (GtkTextView *text_view, GtkTextIter *iter, gdouble within_margin, gboolean use_align, gdouble xalign, gdouble yalign); void gtk_text_view_scroll_mark_onscreen (GtkTextView *text_view, GtkTextMark *mark); gboolean gtk_text_view_move_mark_onscreen (GtkTextView *text_view, GtkTextMark *mark); gboolean gtk_text_view_place_cursor_onscreen (GtkTextView *text_view); void gtk_text_view_get_visible_rect (GtkTextView *text_view, GdkRectangle *visible_rect); void gtk_text_view_get_iter_location (GtkTextView *text_view, const GtkTextIter *iter, GdkRectangle *location); void gtk_text_view_get_line_at_y (GtkTextView *text_view, GtkTextIter *target_iter, gint y, gint *line_top); void gtk_text_view_get_line_yrange (GtkTextView *text_view, const GtkTextIter *iter, gint *y, gint *height); void gtk_text_view_get_iter_at_location (GtkTextView *text_view, GtkTextIter *iter, gint x, gint y); void gtk_text_view_get_iter_at_position (GtkTextView *text_view, GtkTextIter *iter, gint *trailing, gint x, gint y); void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view, GtkTextWindowType win, gint buffer_x, gint buffer_y, gint *window_x, gint *window_y); void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view, GtkTextWindowType win, gint window_x, gint window_y, gint *buffer_x, gint *buffer_y); GdkWindow* gtk_text_view_get_window (GtkTextView *text_view, GtkTextWindowType win); GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view, GdkWindow *window); void gtk_text_view_set_border_window_size (GtkTextView *text_view, GtkTextWindowType type, gint size); gint gtk_text_view_get_border_window_size (GtkTextView *text_view, GtkTextWindowType type); gboolean gtk_text_view_forward_display_line (GtkTextView *text_view, GtkTextIter *iter); gboolean gtk_text_view_backward_display_line (GtkTextView *text_view, GtkTextIter *iter); gboolean gtk_text_view_forward_display_line_end (GtkTextView *text_view, GtkTextIter *iter); gboolean gtk_text_view_backward_display_line_start (GtkTextView *text_view, GtkTextIter *iter); gboolean gtk_text_view_starts_display_line (GtkTextView *text_view, const GtkTextIter *iter); gboolean gtk_text_view_move_visually (GtkTextView *text_view, GtkTextIter *iter, gint count); void gtk_text_view_add_child_at_anchor (GtkTextView *text_view, GtkWidget *child, GtkTextChildAnchor *anchor); GtkTextChildAnchor; GtkTextChildAnchor* gtk_text_child_anchor_new (void); GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor); gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor); void gtk_text_view_add_child_in_window (GtkTextView *text_view, GtkWidget *child, GtkTextWindowType which_window, gint xpos, gint ypos); void gtk_text_view_move_child (GtkTextView *text_view, GtkWidget *child, gint xpos, gint ypos); void gtk_text_view_set_wrap_mode (GtkTextView *text_view, GtkWrapMode wrap_mode); GtkWrapMode gtk_text_view_get_wrap_mode (GtkTextView *text_view); void gtk_text_view_set_editable (GtkTextView *text_view, gboolean setting); gboolean gtk_text_view_get_editable (GtkTextView *text_view); void gtk_text_view_set_cursor_visible (GtkTextView *text_view, gboolean setting); gboolean gtk_text_view_get_cursor_visible (GtkTextView *text_view); void gtk_text_view_set_overwrite (GtkTextView *text_view, gboolean overwrite); gboolean gtk_text_view_get_overwrite (GtkTextView *text_view); void gtk_text_view_set_pixels_above_lines (GtkTextView *text_view, gint pixels_above_lines); gint gtk_text_view_get_pixels_above_lines (GtkTextView *text_view); void gtk_text_view_set_pixels_below_lines (GtkTextView *text_view, gint pixels_below_lines); gint gtk_text_view_get_pixels_below_lines (GtkTextView *text_view); void gtk_text_view_set_pixels_inside_wrap (GtkTextView *text_view, gint pixels_inside_wrap); gint gtk_text_view_get_pixels_inside_wrap (GtkTextView *text_view); void gtk_text_view_set_justification (GtkTextView *text_view, GtkJustification justification); GtkJustification gtk_text_view_get_justification (GtkTextView *text_view); void gtk_text_view_set_left_margin (GtkTextView *text_view, gint left_margin); gint gtk_text_view_get_left_margin (GtkTextView *text_view); void gtk_text_view_set_right_margin (GtkTextView *text_view, gint right_margin); gint gtk_text_view_get_right_margin (GtkTextView *text_view); void gtk_text_view_set_indent (GtkTextView *text_view, gint indent); gint gtk_text_view_get_indent (GtkTextView *text_view); void gtk_text_view_set_tabs (GtkTextView *text_view, PangoTabArray *tabs); PangoTabArray* gtk_text_view_get_tabs (GtkTextView *text_view); void gtk_text_view_set_accepts_tab (GtkTextView *text_view, gboolean accepts_tab); gboolean gtk_text_view_get_accepts_tab (GtkTextView *text_view); GtkTextAttributes* gtk_text_view_get_default_attributes (GtkTextView *text_view); #define GTK_TEXT_VIEW_PRIORITY_VALIDATE Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTextView GObject +----GtkTextChildAnchor Properties"accepts-tab" gboolean : Read / Write "buffer" GtkTextBuffer* : Read / Write "cursor-visible" gboolean : Read / Write "editable" gboolean : Read / Write "indent" gint : Read / Write "justification" GtkJustification : Read / Write "left-margin" gint : Read / Write "overwrite" gboolean : Read / Write "pixels-above-lines" gint : Read / Write "pixels-below-lines" gint : Read / Write "pixels-inside-wrap" gint : Read / Write "right-margin" gint : Read / Write "tabs" PangoTabArray* : Read / Write "wrap-mode" GtkWrapMode : Read / Write Signals"backspace" : Run Last / Action "copy-clipboard" : Run Last / Action "cut-clipboard" : Run Last / Action "delete-from-cursor" : Run Last / Action "insert-at-cursor" : Run Last / Action "move-cursor" : Run Last / Action "move-viewport" : Run Last / Action "page-horizontally" : Run Last / Action "paste-clipboard" : Run Last / Action "populate-popup" : Run Last "select-all" : Run Last / Action "set-anchor" : Run Last / Action "set-scroll-adjustments" : Run Last / Action "toggle-cursor-visible" : Run Last / Action "toggle-overwrite" : Run Last / Action DescriptionYou 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.
Detailsenum GtkTextWindowTypetypedef enum { GTK_TEXT_WINDOW_PRIVATE, GTK_TEXT_WINDOW_WIDGET, GTK_TEXT_WINDOW_TEXT, GTK_TEXT_WINDOW_LEFT, GTK_TEXT_WINDOW_RIGHT, GTK_TEXT_WINDOW_TOP, GTK_TEXT_WINDOW_BOTTOM } GtkTextWindowType;
gtk_text_view_new ()GtkWidget* gtk_text_view_new (void);
Creates a new GtkTextView. If you don't call
gtk_text_view_new_with_buffer ()GtkWidget* gtk_text_view_new_with_buffer (GtkTextBuffer *buffer);
Creates a new GtkTextView widget displaying the buffer
gtk_text_view_set_buffer ()void gtk_text_view_set_buffer (GtkTextView *text_view, GtkTextBuffer *buffer);
Sets
gtk_text_view_get_buffer ()GtkTextBuffer* gtk_text_view_get_buffer (GtkTextView *text_view); Returns the GtkTextBuffer being displayed by this text view. The reference count on the buffer is not incremented; the caller of this function won't own a new reference.
gtk_text_view_scroll_to_mark ()void gtk_text_view_scroll_to_mark (GtkTextView *text_view, GtkTextMark *mark, gdouble within_margin, gboolean use_align, gdouble xalign, gdouble yalign);
Scrolls
gtk_text_view_scroll_to_iter ()gboolean gtk_text_view_scroll_to_iter (GtkTextView *text_view, GtkTextIter *iter, gdouble within_margin, gboolean use_align, gdouble xalign, gdouble yalign);
Scrolls
Note that this function uses the currently-computed height of the
lines in the text buffer. Line heights are computed in an idle
handler; so this function may not have the desired effect if it's
called before the height computations. To avoid oddness, consider
using
gtk_text_view_scroll_mark_onscreen ()void gtk_text_view_scroll_mark_onscreen (GtkTextView *text_view, GtkTextMark *mark);
Scrolls
gtk_text_view_move_mark_onscreen ()gboolean gtk_text_view_move_mark_onscreen (GtkTextView *text_view, GtkTextMark *mark); Moves a mark within the buffer so that it's located within the currently-visible text area.
gtk_text_view_place_cursor_onscreen ()gboolean gtk_text_view_place_cursor_onscreen (GtkTextView *text_view); Moves the cursor to the currently visible region of the buffer, it it isn't there already.
gtk_text_view_get_visible_rect ()void gtk_text_view_get_visible_rect (GtkTextView *text_view, GdkRectangle *visible_rect);
Fills
gtk_text_view_get_iter_location ()void gtk_text_view_get_iter_location (GtkTextView *text_view, const GtkTextIter *iter, GdkRectangle *location);
Gets a rectangle which roughly contains the character at
gtk_text_view_get_line_at_y ()void gtk_text_view_get_line_at_y (GtkTextView *text_view, GtkTextIter *target_iter, gint y, gint *line_top);
Gets the GtkTextIter at the start of the line containing
the coordinate
gtk_text_view_get_line_yrange ()void gtk_text_view_get_line_yrange (GtkTextView *text_view, const GtkTextIter *iter, gint *y, gint *height);
Gets the y coordinate of the top of the line containing
gtk_text_view_get_iter_at_location ()void gtk_text_view_get_iter_at_location (GtkTextView *text_view, GtkTextIter *iter, gint x, gint y);
Retrieves the iterator at buffer coordinates
gtk_text_view_get_iter_at_position ()void gtk_text_view_get_iter_at_position (GtkTextView *text_view, GtkTextIter *iter, gint *trailing, gint x, gint y);
Retrieves the iterator pointing to the character at buffer
coordinates
Note that this is different from
Since 2.6 gtk_text_view_buffer_to_window_coords ()void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view, GtkTextWindowType win, gint buffer_x, gint buffer_y, gint *window_x, gint *window_y);
Converts coordinate (
Note that you can't convert coordinates for a nonexisting window (see
gtk_text_view_window_to_buffer_coords ()void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view, GtkTextWindowType win, gint window_x, gint window_y, gint *buffer_x, gint *buffer_y);
Converts coordinates on the window identified by
Note that you can't convert coordinates for a nonexisting window (see
gtk_text_view_get_window ()GdkWindow* gtk_text_view_get_window (GtkTextView *text_view, GtkTextWindowType win);
Retrieves the GdkWindow corresponding to an area of the text view;
possible windows include the overall widget window, child windows
on the left, right, top, bottom, and the window that displays the
text buffer. Windows are
gtk_text_view_get_window_type ()GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view, GdkWindow *window);
Usually used to find out which window an event corresponds to.
If you connect to an event signal on
gtk_text_view_set_border_window_size ()void gtk_text_view_set_border_window_size (GtkTextView *text_view, GtkTextWindowType type, gint size);
Sets the width of
gtk_text_view_get_border_window_size ()gint gtk_text_view_get_border_window_size (GtkTextView *text_view, GtkTextWindowType type);
Gets the width of the specified border window. See
gtk_text_view_forward_display_line ()gboolean gtk_text_view_forward_display_line (GtkTextView *text_view, GtkTextIter *iter);
Moves the given
gtk_text_view_backward_display_line ()gboolean gtk_text_view_backward_display_line (GtkTextView *text_view, GtkTextIter *iter);
Moves the given
gtk_text_view_forward_display_line_end ()gboolean gtk_text_view_forward_display_line_end (GtkTextView *text_view, GtkTextIter *iter);
Moves the given
gtk_text_view_backward_display_line_start ()gboolean gtk_text_view_backward_display_line_start (GtkTextView *text_view, GtkTextIter *iter);
Moves the given
gtk_text_view_starts_display_line ()gboolean gtk_text_view_starts_display_line (GtkTextView *text_view, const GtkTextIter *iter);
Determines whether
gtk_text_view_move_visually ()gboolean gtk_text_view_move_visually (GtkTextView *text_view, GtkTextIter *iter, gint count);
Move the iterator a given number of characters visually, treating
it as the strong cursor position. If In the presence of bi-directional text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run.
gtk_text_view_add_child_at_anchor ()void gtk_text_view_add_child_at_anchor (GtkTextView *text_view, GtkWidget *child, GtkTextChildAnchor *anchor);
Adds a child widget in the text buffer, at the given
GtkTextChildAnchortypedef struct _GtkTextChildAnchor GtkTextChildAnchor; A GtkTextChildAnchor is a spot in the buffer where child widgets can be "anchored" (inserted inline, as if they were characters). The anchor can have multiple widgets anchored, to allow for multiple views. gtk_text_child_anchor_new ()GtkTextChildAnchor* gtk_text_child_anchor_new (void);
Creates a new GtkTextChildAnchor. Usually you would then insert
it into a GtkTextBuffer with
gtk_text_child_anchor_get_widgets ()GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor);
Gets a list of all widgets anchored at this child anchor.
The returned list should be freed with
gtk_text_child_anchor_get_deleted ()gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor);
Determines whether a child anchor has been deleted from
the buffer. Keep in mind that the child anchor will be
unreferenced when removed from the buffer, so you need to
hold your own reference (with
gtk_text_view_add_child_in_window ()void gtk_text_view_add_child_in_window (GtkTextView *text_view, GtkWidget *child, GtkTextWindowType which_window, gint xpos, gint ypos);
Adds a child at fixed coordinates in one of the text widget's
windows. The window must have nonzero size (see
gtk_text_view_move_child ()void gtk_text_view_move_child (GtkTextView *text_view, GtkWidget *child, gint xpos, gint ypos);
Updates the position of a child, as for
gtk_text_view_set_wrap_mode ()void gtk_text_view_set_wrap_mode (GtkTextView *text_view, GtkWrapMode wrap_mode); Sets the line wrapping for the view.
gtk_text_view_get_wrap_mode ()GtkWrapMode gtk_text_view_get_wrap_mode (GtkTextView *text_view); Gets the line wrapping for the view.
gtk_text_view_set_editable ()void gtk_text_view_set_editable (GtkTextView *text_view, gboolean setting); Sets the default editability of the GtkTextView. You can override this default setting with tags in the buffer, using the "editable" attribute of tags.
gtk_text_view_get_editable ()gboolean gtk_text_view_get_editable (GtkTextView *text_view); Returns the default editability of the GtkTextView. Tags in the buffer may override this setting for some ranges of text.
gtk_text_view_set_cursor_visible ()void gtk_text_view_set_cursor_visible (GtkTextView *text_view, gboolean setting); Toggles whether the insertion point is displayed. A buffer with no editable text probably shouldn't have a visible cursor, so you may want to turn the cursor off.
gtk_text_view_get_cursor_visible ()gboolean gtk_text_view_get_cursor_visible (GtkTextView *text_view); Find out whether the cursor is being displayed.
gtk_text_view_set_overwrite ()void gtk_text_view_set_overwrite (GtkTextView *text_view, gboolean overwrite); Changes the GtkTextView overwrite mode.
Since 2.4 gtk_text_view_get_overwrite ()gboolean gtk_text_view_get_overwrite (GtkTextView *text_view); Returns whether the GtkTextView is in overwrite mode or not.
Since 2.4 gtk_text_view_set_pixels_above_lines ()void gtk_text_view_set_pixels_above_lines (GtkTextView *text_view, gint pixels_above_lines);
Sets the default number of blank pixels above paragraphs in
gtk_text_view_get_pixels_above_lines ()gint gtk_text_view_get_pixels_above_lines (GtkTextView *text_view); Gets the default number of pixels to put above paragraphs.
gtk_text_view_set_pixels_below_lines ()void gtk_text_view_set_pixels_below_lines (GtkTextView *text_view, gint pixels_below_lines);
Sets the default number of pixels of blank space
to put below paragraphs in
gtk_text_view_get_pixels_below_lines ()gint gtk_text_view_get_pixels_below_lines (GtkTextView *text_view);
Gets the value set by
gtk_text_view_set_pixels_inside_wrap ()void gtk_text_view_set_pixels_inside_wrap (GtkTextView *text_view, gint pixels_inside_wrap);
Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph. May be overridden by
tags in
gtk_text_view_get_pixels_inside_wrap ()gint gtk_text_view_get_pixels_inside_wrap (GtkTextView *text_view);
Gets the value set by
gtk_text_view_set_justification ()void gtk_text_view_set_justification (GtkTextView *text_view, GtkJustification justification);
Sets the default justification of text in
gtk_text_view_get_justification ()GtkJustification gtk_text_view_get_justification (GtkTextView *text_view);
Gets the default justification of paragraphs in
gtk_text_view_set_left_margin ()void gtk_text_view_set_left_margin (GtkTextView *text_view, gint left_margin);
Sets the default left margin for text in
gtk_text_view_get_left_margin ()gint gtk_text_view_get_left_margin (GtkTextView *text_view);
Gets the default left margin size of paragraphs in the
gtk_text_view_set_right_margin ()void gtk_text_view_set_right_margin (GtkTextView *text_view, gint right_margin); Sets the default right margin for text in the text view. Tags in the buffer may override the default.
gtk_text_view_get_right_margin ()gint gtk_text_view_get_right_margin (GtkTextView *text_view);
Gets the default right margin for text in
gtk_text_view_set_indent ()void gtk_text_view_set_indent (GtkTextView *text_view, gint indent);
Sets the default indentation for paragraphs in
gtk_text_view_get_indent ()gint gtk_text_view_get_indent (GtkTextView *text_view);
Gets the default indentation of paragraphs in
gtk_text_view_set_tabs ()void gtk_text_view_set_tabs (GtkTextView *text_view, PangoTabArray *tabs);
Sets the default tab stops for paragraphs in
gtk_text_view_get_tabs ()PangoTabArray* gtk_text_view_get_tabs (GtkTextView *text_view);
Gets the default tabs for
gtk_text_view_set_accepts_tab ()void gtk_text_view_set_accepts_tab (GtkTextView *text_view, gboolean accepts_tab);
Sets the behavior of the text widget when the Tab key is pressed.
If
Since 2.4 gtk_text_view_get_accepts_tab ()gboolean gtk_text_view_get_accepts_tab (GtkTextView *text_view);
Returns whether pressing the Tab key inserts a tab characters.
Since 2.4 gtk_text_view_get_default_attributes ()GtkTextAttributes* gtk_text_view_get_default_attributes (GtkTextView *text_view);
Obtains a copy of the default text attributes. These are the
attributes used for text unless a tag overrides them.
You'd typically pass the default attributes in to
The return value is a copy owned by the caller of this function, and should be freed.
Property DetailsThe
|
|
the object which received the signal |
|
user data set when the signal handler was connected. |
"copy-clipboard"
signalvoid user_function (GtkTextView *text_view, gpointer user_data) : Run Last / Action
The ::copy-clipboard signal is a keybinding signal which gets emitted to copy the selection to the clipboard.
The default bindings for this signal are Ctrl-c and Ctrl-Insert.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
"cut-clipboard"
signalvoid user_function (GtkTextView *text_view, gpointer user_data) : Run Last / Action
The ::cut-clipboard signal is a keybinding signal which gets emitted to cut the selection to the clipboard.
The default bindings for this signal are Ctrl-x and Shift-Delete.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
"delete-from-cursor"
signalvoid user_function (GtkTextView *text_view, GtkDeleteType type, gint count, gpointer user_data) : Run Last / Action
The ::delete-from-cursor signal is a keybinding signal which gets emitted when the user initiates a text deletion.
If the type
is GTK_DELETE_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 backwords.
|
the object which received the signal |
|
the granularity of the deletion, as a GtkDeleteType |
|
the number of type units to delete
|
|
user data set when the signal handler was connected. |
"insert-at-cursor"
signalvoid user_function (GtkTextView *textview, gchar *arg1, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"move-cursor"
signalvoid user_function (GtkTextView *text_view, GtkMovementStep step, gint count, gboolean extend_selection, gpointer user_data) : Run Last / Action
The ::move-cursor signal is a
keybinding signal
which gets emitted when the user initiates a cursor movement.
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 scrolling
programmatically.
The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here.
|
the object which received the signal |
|
the granularity of the move, as a GtkMovementStep |
|
the number of step units to move
|
|
TRUE if the move should extend the selection
|
|
user data set when the signal handler was connected. |
"move-viewport"
signalvoid user_function (GtkTextView *text_view, GtkScrollStep step, gint count, gpointer user_data) : Run Last / Action
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.
|
the object which received the signal |
|
the granularity of the move, as a GtkMovementStep |
|
the number of step units to move
|
|
user data set when the signal handler was connected. |
"page-horizontally"
signalvoid user_function (GtkTextView *text_view, gint count, gboolean extend_selection, gpointer user_data) : Run Last / Action
The ::page-horizontally signal is a keybinding signal which can be bound to key combinations to allow the user to initiate horizontal cursor movement by pages.
This signal should not be used anymore, instead use the "move-cursor" signal with the GTK_MOVEMENT_HORIZONTAL_PAGES granularity.
|
the object which received the signal |
|
the number of step units to move
|
|
TRUE if the move should extend the selection
|
|
user data set when the signal handler was connected. |
"paste-clipboard"
signalvoid user_function (GtkTextView *text_view, gpointer user_data) : Run Last / Action
The ::paste-clipboard signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the text view.
The default bindings for this signal are Ctrl-v and Shift-Insert.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
"populate-popup"
signalvoid user_function (GtkTextView *textview, GtkMenu *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"select-all"
signalvoid user_function (GtkTextView *text_view, gboolean select, gpointer user_data) : Run Last / Action
The ::select-all signal is a keybinding signal which gets emitted to select or unselect the complete contents of the text view.
The default bindings for this signal are Ctrl-a and Ctrl-/ for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting.
|
the object which received the signal |
|
TRUE to select, FALSE to unselect
|
|
user data set when the signal handler was connected. |
"set-anchor"
signalvoid user_function (GtkTextView *textview, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"set-scroll-adjustments"
signalvoid user_function (GtkTextView *textview, GtkAdjustment *arg1, GtkAdjustment *arg2, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"toggle-cursor-visible"
signalvoid user_function (GtkTextView *text_view, gpointer user_data) : Run Last / Action
The ::toggle-cursor-visible signal is a keybinding signal which gets emitted to toggle the visibility of the cursor.
The default binding for this signal is F7.
|
the object which received the signal |
|
user data set when the signal handler was connected. |
"toggle-overwrite"
signalvoid user_function (GtkTextView *text_view, gpointer user_data) : Run Last / Action
The ::toggle-overwrite signal is a keybinding signal which gets emitted to change the editability of the text view.
The default bindings for this signal is Insert.
|
the object which received the signal |
|
user data set when the signal handler was connected. |