Class

IdeSourceView

Description

class Ide.SourceView : GtkSource.View {
  parent_instance: GtkSourceView
}
No description available.

Instance methods

ide_source_view_clear_search
No description available.
ide_source_view_clear_snippets
No description available.
ide_source_view_get_completion

Get the completion for the IdeSourceView.

Available since: 3.32

ide_source_view_get_count
No description available.
ide_source_view_get_current_snippet

Gets the current snippet if there is one, otherwise NULL.

Available since: 3.32

ide_source_view_get_file_settings

Gets the IdeSourceView:file-settings property. This contains various settings for how the file should be rendered in the view, and preferences such as spaces vs tabs.

Available since: 3.32

ide_source_view_get_font_desc
No description available.
ide_source_view_get_highlight_current_line
No description available.
ide_source_view_get_insert_matching_brace
No description available.
ide_source_view_get_iter_at_visual_column
No description available.
ide_source_view_get_mode_display_name
No description available.
ide_source_view_get_mode_name
No description available.
ide_source_view_get_overwrite
No description available.
ide_source_view_get_overwrite_braces
No description available.
ide_source_view_get_scaled_font_desc

Like ide_source_view_get_font_desc() but takes the editor zoom into account. You must free the result with pango_font_description_free().

Available since: 3.32

ide_source_view_get_scroll_offset

Gets the IdeSourceView:scroll-offset property. This property contains the number of lines that should be kept above or below the line containing the insertion cursor relative to the top and bottom of the visible text window.

Available since: 3.32

ide_source_view_get_show_grid_lines
No description available.
ide_source_view_get_show_line_changes
No description available.
ide_source_view_get_show_line_diagnostics
No description available.
ide_source_view_get_show_line_numbers
No description available.
ide_source_view_get_snippet_completion
No description available.
ide_source_view_get_spell_checking
No description available.
ide_source_view_get_visible_rect

Gets the visible region in buffer coordinates that is the visible area of the buffer. This is similar to gtk_text_view_get_visible_area() except that it takes into account the IdeSourceView:scroll-offset property to ensure there is space above and below the visible_rect.

Available since: 3.32

ide_source_view_get_visual_column
No description available.
ide_source_view_get_visual_position
No description available.
ide_source_view_has_snippet

Checks if there is an active snippet.

Available since: 3.32

ide_source_view_is_processing_key
No description available.
ide_source_view_jump
No description available.
ide_source_view_move_mark_onscreen
No description available.
ide_source_view_place_cursor_onscreen
No description available.
ide_source_view_pop_snippet
No description available.
ide_source_view_push_snippet

Pushes a new snippet onto the source view.

Available since: 3.32

ide_source_view_rollback_search
No description available.
ide_source_view_save_search
No description available.
ide_source_view_scroll_mark_onscreen
No description available.
ide_source_view_scroll_to_insert
No description available.
ide_source_view_scroll_to_iter
No description available.
ide_source_view_scroll_to_mark
No description available.
ide_source_view_set_count
No description available.
ide_source_view_set_font_desc
No description available.
ide_source_view_set_font_name
No description available.
ide_source_view_set_gutter

Allows setting the gutter for the sourceview.

Available since: 3.32

ide_source_view_set_highlight_current_line
No description available.
ide_source_view_set_insert_matching_brace
No description available.
ide_source_view_set_misspelled_word
No description available.
ide_source_view_set_overwrite_braces
No description available.
ide_source_view_set_scroll_offset

Sets the IdeSourceView:scroll-offset property. See ide_source_view_get_scroll_offset() for more information. Set to 0 to unset this property.

Available since: 3.32

ide_source_view_set_show_grid_lines
No description available.
ide_source_view_set_show_line_changes
No description available.
ide_source_view_set_show_line_diagnostics
No description available.
ide_source_view_set_show_line_numbers
No description available.
ide_source_view_set_snippet_completion
No description available.
ide_source_view_set_spell_checking
No description available.
Methods inherited from GtkSourceView (34)
Methods inherited from GtkTextView (71)
Methods inherited from GtkContainer (33)
Methods inherited from GtkWidget (263)
Methods inherited from GObject (43)
Methods inherited from GtkBuildable (10)
gtk_buildable_add_child

Adds a child to buildable. type is an optional string describing how the child should be added.

Available since: 2.12

gtk_buildable_construct_child

Constructs a child of buildable with the name name.

Available since: 2.12

gtk_buildable_custom_finished

This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

Available since: 2.12

gtk_buildable_custom_tag_end

This is called at the end of each custom element handled by the buildable.

Available since: 2.12

gtk_buildable_custom_tag_start

This is called for each unknown element under <child>.

Available since: 2.12

gtk_buildable_get_internal_child

Get the internal child called childname of the buildable object.

Available since: 2.12

gtk_buildable_get_name

Gets the name of the buildable object.

Available since: 2.12

gtk_buildable_parser_finished

Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

Available since: 2.12

gtk_buildable_set_buildable_property

Sets the property name name to value on the buildable object.

Available since: 2.12

gtk_buildable_set_name

Sets the name of the buildable object.

Available since: 2.12

Methods inherited from GtkScrollable (9)
gtk_scrollable_get_border

Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.

Available since: 3.16

gtk_scrollable_get_hadjustment

Retrieves the GtkAdjustment used for horizontal scrolling.

Available since: 3.0

gtk_scrollable_get_hscroll_policy

Gets the horizontal GtkScrollablePolicy.

Available since: 3.0

gtk_scrollable_get_vadjustment

Retrieves the GtkAdjustment used for vertical scrolling.

Available since: 3.0

gtk_scrollable_get_vscroll_policy

Gets the vertical GtkScrollablePolicy.

Available since: 3.0

gtk_scrollable_set_hadjustment

Sets the horizontal adjustment of the GtkScrollable.

Available since: 3.0

gtk_scrollable_set_hscroll_policy

Sets the GtkScrollablePolicy to determine whether horizontal scrolling should start below the minimum width or below the natural width.

Available since: 3.0

gtk_scrollable_set_vadjustment

Sets the vertical adjustment of the GtkScrollable.

Available since: 3.0

gtk_scrollable_set_vscroll_policy

Sets the GtkScrollablePolicy to determine whether vertical scrolling should start below the minimum height or below the natural height.

Available since: 3.0

Properties

Ide.SourceView:completion-n-rows
No description available.
Ide.SourceView:count
No description available.
Ide.SourceView:file-settings
No description available.
Ide.SourceView:font-desc
No description available.
Ide.SourceView:font-name
No description available.
Ide.SourceView:indent-style
No description available.
Ide.SourceView:indenter
No description available.
Ide.SourceView:insert-matching-brace
No description available.
Ide.SourceView:interactive-completion
No description available.
Ide.SourceView:mode-display-name
No description available.
Ide.SourceView:overscroll
No description available.
Ide.SourceView:overwrite-braces
No description available.
Ide.SourceView:scroll-offset
No description available.
Ide.SourceView:show-grid-lines
No description available.
Ide.SourceView:show-line-changes
No description available.
Ide.SourceView:show-line-diagnostics

If the diagnostics gutter should be visible.

Available since: 3.32

Ide.SourceView:show-relative-line-numbers
No description available.
Properties inherited from GtkSourceView (15)
GtkSource.View:auto-indent
No description available.
GtkSource.View:background-pattern

Draw a specific background pattern on the view.

Available since: 3.16

GtkSource.View:completion

The completion object associated with the view.

GtkSource.View:highlight-current-line
No description available.
GtkSource.View:indent-on-tab
No description available.
GtkSource.View:indent-width

Width of an indentation step expressed in number of spaces.

GtkSource.View:insert-spaces-instead-of-tabs
No description available.
GtkSource.View:right-margin-position

Position of the right margin.

GtkSource.View:show-line-marks

Whether to display line mark pixbufs.

GtkSource.View:show-line-numbers

Whether to display line numbers.

GtkSource.View:show-right-margin

Whether to display the right margin.

GtkSource.View:smart-backspace

Whether smart Backspace should be used.

Available since: 3.18

GtkSource.View:smart-home-end

Set the behavior of the HOME and END keys.

Available since: 2.0

GtkSource.View:space-drawer

The GtkSourceSpaceDrawer object associated with the view.

Available since: 3.24

GtkSource.View:tab-width

Width of a tab character expressed in number of spaces.

Properties inherited from GtkTextView (21)
Gtk.TextView:accepts-tab
No description available.
Gtk.TextView:bottom-margin

The bottom margin for text in the text view.

Available since: 3.18

Gtk.TextView:buffer
No description available.
Gtk.TextView:cursor-visible
No description available.
Gtk.TextView:editable
No description available.
Gtk.TextView:im-module

Which IM (input method) module should be used for this text_view. See GtkIMContext.

Available since: 2.16

Gtk.TextView:indent
No description available.
Gtk.TextView:input-hints

Additional hints (beyond GtkTextView:input-purpose) that allow input methods to fine-tune their behaviour.

Available since: 3.6

Gtk.TextView:input-purpose

The purpose of this text field.

Available since: 3.6

Gtk.TextView:justification
No description available.
Gtk.TextView:left-margin

The default left margin for text in the text view. Tags in the buffer may override the default.

Gtk.TextView:monospace
No description available.
Gtk.TextView:overwrite
No description available.
Gtk.TextView:pixels-above-lines
No description available.
Gtk.TextView:pixels-below-lines
No description available.
Gtk.TextView:pixels-inside-wrap
No description available.
Gtk.TextView:populate-all

If :populate-all is TRUE, the GtkTextView::populate-popup signal is also emitted for touch popups.

Available since: 3.8

Gtk.TextView:right-margin

The default right margin for text in the text view. Tags in the buffer may override the default.

Gtk.TextView:tabs
No description available.
Gtk.TextView:top-margin

The top margin for text in the text view.

Available since: 3.18

Gtk.TextView:wrap-mode
No description available.
Properties inherited from GtkContainer (3)
Gtk.Container:border-width
No description available.
Gtk.Container:child
No description available.
Gtk.Container:resize-mode
No description available.
Properties inherited from GtkWidget (39)
Gtk.Widget:app-paintable
No description available.
Gtk.Widget:can-default
No description available.
Gtk.Widget:can-focus
No description available.
Gtk.Widget:composite-child
No description available.
Gtk.Widget:double-buffered

Whether the widget is double buffered.

Available since: 2.18

Deprecated since: 3.14

Gtk.Widget:events
No description available.
Gtk.Widget:expand

Whether to expand in both directions. Setting this sets both GtkWidget:hexpand and GtkWidget:vexpand.

Available since: 3.0

Gtk.Widget:focus-on-click

Whether the widget should grab focus when it is clicked with the mouse.

Available since: 3.20

Gtk.Widget:halign

How to distribute horizontal space if widget gets extra space, see GtkAlign.

Available since: 3.0

Gtk.Widget:has-default
No description available.
Gtk.Widget:has-focus
No description available.
Gtk.Widget:has-tooltip

Enables or disables the emission of GtkWidget::query-tooltip on widget. A value of TRUE indicates that widget can have a tooltip, in this case the widget will be queried using GtkWidget::query-tooltip to determine whether it will provide a tooltip or not.

Available since: 2.12

Gtk.Widget:height-request
No description available.
Gtk.Widget:hexpand

Whether to expand horizontally. See gtk_widget_set_hexpand().

Available since: 3.0

Gtk.Widget:hexpand-set

Whether to use the GtkWidget:hexpand property. See gtk_widget_get_hexpand_set().

Available since: 3.0

Gtk.Widget:is-focus
No description available.
Gtk.Widget:margin

Sets all four sides’ margin at once. If read, returns max margin on any side.

Available since: 3.0

Gtk.Widget:margin-bottom

Margin on bottom side of widget.

Available since: 3.0

Gtk.Widget:margin-end

Margin on end of widget, horizontally. This property supports left-to-right and right-to-left text directions.

Available since: 3.12

Gtk.Widget:margin-left

Margin on left side of widget.

Available since: 3.0

Deprecated since: 3.12

Gtk.Widget:margin-right

Margin on right side of widget.

Available since: 3.0

Deprecated since: 3.12

Gtk.Widget:margin-start

Margin on start of widget, horizontally. This property supports left-to-right and right-to-left text directions.

Available since: 3.12

Gtk.Widget:margin-top

Margin on top side of widget.

Available since: 3.0

Gtk.Widget:name
No description available.
Gtk.Widget:no-show-all
No description available.
Gtk.Widget:opacity

The requested opacity of the widget. See gtk_widget_set_opacity() for more details about window opacity.

Available since: 3.8

Gtk.Widget:parent
No description available.
Gtk.Widget:receives-default
No description available.
Gtk.Widget:scale-factor

The scale factor of the widget. See gtk_widget_get_scale_factor() for more details about widget scaling.

Available since: 3.10

Gtk.Widget:sensitive
No description available.
Gtk.Widget:style

The style of the widget, which contains information about how it will look (colors, etc).

Gtk.Widget:tooltip-markup

Sets the text of tooltip to be the given string, which is marked up with the [Pango text markup language][PangoMarkupFormat]. Also see gtk_tooltip_set_markup().

Available since: 2.12

Gtk.Widget:tooltip-text

Sets the text of tooltip to be the given string.

Available since: 2.12

Gtk.Widget:valign

How to distribute vertical space if widget gets extra space, see GtkAlign.

Available since: 3.0

Gtk.Widget:vexpand

Whether to expand vertically. See gtk_widget_set_vexpand().

Available since: 3.0

Gtk.Widget:vexpand-set

Whether to use the GtkWidget:vexpand property. See gtk_widget_get_vexpand_set().

Available since: 3.0

Gtk.Widget:visible
No description available.
Gtk.Widget:width-request
No description available.
Gtk.Widget:window

The widget’s window if it is realized, NULL otherwise.

Available since: 2.14

Properties inherited from GtkScrollable (4)
Gtk.Scrollable:hadjustment

Horizontal GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.

Available since: 3.0

Gtk.Scrollable:hscroll-policy

Determines whether horizontal scrolling should start once the scrollable widget is allocated less than its minimum width or less than its natural width.

Available since: 3.0

Gtk.Scrollable:vadjustment

Verical GtkAdjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.

Available since: 3.0

Gtk.Scrollable:vscroll-policy

Determines whether vertical scrolling should start once the scrollable widget is allocated less than its minimum height or less than its natural height.

Available since: 3.0

Signals

Ide.SourceView::action
No description available.
Ide.SourceView::add-cursor
No description available.
Ide.SourceView::append-to-count
No description available.
Ide.SourceView::begin-macro

This signal will begin recording input to the IdeSourceView. This includes the current IdeSourceViewMode, IdeSourceView:count and IdeSourceView:modifier which will be used to replay the sequence starting from the correct state.

Available since: 3.32

Ide.SourceView::begin-rename

This signal is emitted when the source view should begin a rename operation using the IdeRenameProvider from the underlying buffer. The cursor position will be used as the location when sending the request to the provider.

Available since: 3.32

Ide.SourceView::begin-user-action
No description available.
Ide.SourceView::capture-modifier

This signal will block the main loop in a similar fashion to how gtk_dialog_run() performs until a key-press has occurred that can be captured for use in movements.

Available since: 3.32

Ide.SourceView::clear-count
No description available.
Ide.SourceView::clear-modifier
No description available.
Ide.SourceView::clear-search
No description available.
Ide.SourceView::clear-selection
No description available.
Ide.SourceView::clear-snippets
No description available.
Ide.SourceView::copy-clipboard-extended
No description available.
Ide.SourceView::cycle-completion
No description available.
Ide.SourceView::decrease-font-size
No description available.
Ide.SourceView::delete-selection
No description available.
Ide.SourceView::draw-bubbles
No description available.
Ide.SourceView::duplicate-entire-line
No description available.
Ide.SourceView::end-macro

You should call IdeSourceView::begin-macro before emitting this signal.

Available since: 3.32

Ide.SourceView::end-user-action
No description available.
Ide.SourceView::find-references
No description available.
Ide.SourceView::focus-location
No description available.
Ide.SourceView::format-selection
No description available.
Ide.SourceView::goto-definition
No description available.
Ide.SourceView::hide-completion
No description available.
Ide.SourceView::increase-font-size
No description available.
Ide.SourceView::indent-selection
No description available.
Ide.SourceView::insert-modifier

Inserts the current modifier character at the insert mark in the buffer. If use_count is TRUE, then the character will be inserted IdeSourceView:count times.

Available since: 3.32

Ide.SourceView::jump
No description available.
Ide.SourceView::move-error

Moves to the next search result either forwards or backwards.

Available since: 3.32

Ide.SourceView::move-search
No description available.
Ide.SourceView::movement
No description available.
Ide.SourceView::paste-clipboard-extended
No description available.
Ide.SourceView::pop-selection

Reselects a previousl selected range of text that was saved using IdeSourceView::push-selection.

Available since: 3.32

Ide.SourceView::pop-snippet

Pops the current snippet from the sourceview if there is one.

Available since: 3.32

Ide.SourceView::push-selection

Saves the current selection away to be restored by a call to IdeSourceView::pop-selection. You must pop the selection to keep the selection stack in consistent order.

Available since: 3.32

Ide.SourceView::push-snippet

Pushes snippet onto the snippet stack at either iter or the insertion mark if iter is not provided.

Available since: 3.32

Ide.SourceView::rebuild-highlight
No description available.
Ide.SourceView::reindent
No description available.
Ide.SourceView::remove-cursors
No description available.
Ide.SourceView::replay-macro
No description available.
Ide.SourceView::request-documentation
No description available.
Ide.SourceView::reset

This is a helper signal that will try to reset keyboard input and various stateful settings of the sourceview. This is a good signal to map to the “Escape” key.

Available since: 3.32

Ide.SourceView::reset-font-size
No description available.
Ide.SourceView::restore-insert-mark
No description available.
Ide.SourceView::save-command
No description available.
Ide.SourceView::save-insert-mark
No description available.
Ide.SourceView::save-search-char
No description available.
Ide.SourceView::select-inner
No description available.
Ide.SourceView::select-tag
No description available.
Ide.SourceView::selection-theatric
No description available.
Ide.SourceView::set-mode
No description available.
Ide.SourceView::set-overwrite
No description available.
Ide.SourceView::set-search-text
No description available.
Ide.SourceView::sort

This signal is meant to be activated from keybindings to sort the currently selected lines. The lines are sorted using qsort() and either strcmp() or strcasecmp().

Available since: 3.32

Ide.SourceView::swap-selection-bounds
No description available.
Signals inherited from GtkSourceView (11)
GtkSource.View::change-case

Keybinding signal to change case of the text at the current cursor position.

Available since: 3.16

GtkSource.View::change-number

Keybinding signal to edit a number at the current cursor position.

Available since: 3.16

GtkSource.View::join-lines

Keybinding signal to join the lines currently selected.

Available since: 3.16

GtkSource.View::line-mark-activated

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.

GtkSource.View::move-lines

The ::move-lines 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.

GtkSource.View::move-to-matching-bracket

Keybinding signal to move the cursor to the matching bracket.

Available since: 3.16

GtkSource.View::move-words

The ::move-words 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.

Available since: 3.0

GtkSource.View::redo
No description available.
GtkSource.View::show-completion

The ::show-completion signal is a key binding signal which gets emitted when the user requests a completion, by pressing Controlspace.

GtkSource.View::smart-home-end

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 GtkTextView::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.

Available since: 3.0

GtkSource.View::undo
No description available.
Signals inherited from GtkTextView (16)
Gtk.TextView::backspace

The ::backspace signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.

Gtk.TextView::copy-clipboard

The ::copy-clipboard signal is a [keybinding signal][GtkBindingSignal] which gets emitted to copy the selection to the clipboard.

Gtk.TextView::cut-clipboard

The ::cut-clipboard signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cut the selection to the clipboard.

Gtk.TextView::delete-from-cursor

The ::delete-from-cursor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user initiates a text deletion.

Gtk.TextView::extend-selection

The ::extend-selection signal is emitted when the selection needs to be extended at location.

Available since: 3.16

Gtk.TextView::insert-at-cursor

The ::insert-at-cursor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user initiates the insertion of a fixed string at the cursor.

Gtk.TextView::insert-emoji

The ::insert-emoji signal is a [keybinding signal][GtkBindingSignal] which gets emitted to present the Emoji chooser for the text_view.

Available since: 3.22.27

Gtk.TextView::move-cursor

The ::move-cursor signal is a [keybinding signal][GtkBindingSignal] 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.

Gtk.TextView::move-viewport

The ::move-viewport signal is a [keybinding signal][GtkBindingSignal] 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.

Gtk.TextView::paste-clipboard

The ::paste-clipboard signal is a [keybinding signal][GtkBindingSignal] which gets emitted to paste the contents of the clipboard into the text view.

Gtk.TextView::populate-popup

The ::populate-popup signal gets emitted before showing the context menu of the text view.

Gtk.TextView::preedit-changed

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.

Available since: 2.20

Gtk.TextView::select-all

The ::select-all signal is a [keybinding signal][GtkBindingSignal] which gets emitted to select or unselect the complete contents of the text view.

Gtk.TextView::set-anchor

The ::set-anchor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user initiates setting the “anchor” mark. The “anchor” mark gets placed at the same position as the “insert” mark.

Gtk.TextView::toggle-cursor-visible

The ::toggle-cursor-visible signal is a [keybinding signal][GtkBindingSignal] which gets emitted to toggle the GtkTextView:cursor-visible property.

Gtk.TextView::toggle-overwrite

The ::toggle-overwrite signal is a [keybinding signal][GtkBindingSignal] which gets emitted to toggle the overwrite mode of the text view.

Signals inherited from GtkContainer (4)
Gtk.Container::add
No description available.
Gtk.Container::check-resize
No description available.
Gtk.Container::remove
No description available.
Gtk.Container::set-focus-child
No description available.
Signals inherited from GtkWidget (69)
Gtk.Widget::accel-closures-changed
No description available.
Gtk.Widget::button-press-event

The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.

Gtk.Widget::button-release-event

The ::button-release-event signal will be emitted when a button (typically from a mouse) is released.

Gtk.Widget::can-activate-accel

Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This signal is present to allow applications and derived widgets to override the default GtkWidget handling for determining whether an accelerator can be activated.

Gtk.Widget::child-notify

The ::child-notify signal is emitted for each [child property][child-properties] that has changed on an object. The signal’s detail holds the property name.

Gtk.Widget::composited-changed

The ::composited-changed signal is emitted when the composited status of widgets screen changes. See gdk_screen_is_composited().

Deprecated since: 3.22

Gtk.Widget::configure-event

The ::configure-event signal will be emitted when the size, position or stacking of the widgets window has changed.

Gtk.Widget::damage-event

Emitted when a redirected window belonging to widget gets drawn into. The region/area members of the event shows what area of the redirected drawable was drawn into.

Available since: 2.14

Gtk.Widget::delete-event

The ::delete-event signal is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window. Connecting gtk_widget_hide_on_delete() to this signal will cause the window to be hidden instead, so that it can later be shown again without reconstructing it.

Gtk.Widget::destroy

Signals 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.

Gtk.Widget::destroy-event

The ::destroy-event signal is emitted when a GdkWindow is destroyed. You rarely get this signal, because most widgets disconnect themselves from their window before they destroy it, so no widget owns the window at destroy time.

Gtk.Widget::direction-changed

The ::direction-changed signal is emitted when the text direction of a widget changes.

Gtk.Widget::drag-begin

The ::drag-begin signal is emitted on the drag source when a drag is started. A typical reason to connect to this signal is to set up a custom drag icon with e.g. gtk_drag_source_set_icon_pixbuf().

Gtk.Widget::drag-data-delete

The ::drag-data-delete signal is emitted on the drag source when a drag with the action GDK_ACTION_MOVE is successfully completed. The signal handler is responsible for deleting the data that has been dropped. What “delete” means depends on the context of the drag operation.

Gtk.Widget::drag-data-get

The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill data with the data in the format which is indicated by info. See gtk_selection_data_set() and gtk_selection_data_set_text().

Gtk.Widget::drag-data-received

The ::drag-data-received signal is emitted on the drop site when the dragged data has been received. If the data was received in order to determine whether the drop will be accepted, the handler is expected to call gdk_drag_status() and not finish the drag. If the data was received in response to a GtkWidget::drag-drop signal (and this is the last target to be received), the handler for this signal is expected to process the received data and then call gtk_drag_finish(), setting the success parameter depending on whether the data was processed successfully.

Gtk.Widget::drag-drop

The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns FALSE and no further processing is necessary. Otherwise, the handler returns TRUE. In this case, the handler must ensure that gtk_drag_finish() is called to let the source know that the drop is done. The call to gtk_drag_finish() can be done either directly or in a GtkWidget::drag-data-received handler which gets triggered by calling gtk_drag_get_data() to receive the data for one or more of the supported targets.

Gtk.Widget::drag-end

The ::drag-end signal is emitted on the drag source when a drag is finished. A typical reason to connect to this signal is to undo things done in GtkWidget::drag-begin.

Gtk.Widget::drag-failed

The ::drag-failed signal is emitted on the drag source when a drag has failed. The signal handler may hook custom code to handle a failed DnD operation based on the type of error, it returns TRUE is the failure has been already handled (not showing the default “drag operation failed” animation), otherwise it returns FALSE.

Available since: 2.12

Gtk.Widget::drag-leave

The ::drag-leave signal is emitted on the drop site when the cursor leaves the widget. A typical reason to connect to this signal is to undo things done in GtkWidget::drag-motion, e.g. undo highlighting with gtk_drag_unhighlight().

Gtk.Widget::drag-motion

The ::drag-motion signal is emitted on the drop site when the user moves the cursor over the widget during a drag. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns FALSE and no further processing is necessary. Otherwise, the handler returns TRUE. In this case, the handler is responsible for providing the necessary information for displaying feedback to the user, by calling gdk_drag_status().

Gtk.Widget::draw

This signal is emitted when a widget is supposed to render itself. The widgets top left corner must be painted at the origin of the passed in context and be sized to the values returned by gtk_widget_get_allocated_width() and gtk_widget_get_allocated_height().

Available since: 3.0

Gtk.Widget::enter-notify-event

The ::enter-notify-event will be emitted when the pointer enters the widgets window.

Gtk.Widget::event

The GTK+ main loop will emit three signals for each GDK event delivered to a widget: one generic ::event signal, another, more specific, signal that matches the type of event delivered (e.g. GtkWidget::key-press-event) and finally a generic GtkWidget::event-after signal.

Gtk.Widget::event-after

After the emission of the GtkWidget::event signal and (optionally) the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values.

Gtk.Widget::focus
No description available.
Gtk.Widget::focus-in-event

The ::focus-in-event signal will be emitted when the keyboard focus enters the widgets window.

Gtk.Widget::focus-out-event

The ::focus-out-event signal will be emitted when the keyboard focus leaves the widgets window.

Gtk.Widget::grab-broken-event

Emitted when a pointer or keyboard grab on a window belonging to widget gets broken.

Available since: 2.8

Gtk.Widget::grab-focus
No description available.
Gtk.Widget::grab-notify

The ::grab-notify signal is emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed.

Gtk.Widget::hide

The ::hide signal is emitted when widget is hidden, for example with gtk_widget_hide().

Gtk.Widget::hierarchy-changed

The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is “anchored” when its toplevel ancestor is a GtkWindow. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.

Gtk.Widget::key-press-event

The ::key-press-event signal is emitted when a key is pressed. The signal emission will reoccur at the key-repeat rate when the key is kept pressed.

Gtk.Widget::key-release-event

The ::key-release-event signal is emitted when a key is released.

Gtk.Widget::keynav-failed

Gets emitted if keyboard navigation fails. See gtk_widget_keynav_failed() for details.

Available since: 2.12

Gtk.Widget::leave-notify-event

The ::leave-notify-event will be emitted when the pointer leaves the widgets window.

Gtk.Widget::map

The ::map signal is emitted when widget is going to be mapped, that is when the widget is visible (which is controlled with gtk_widget_set_visible()) and all its parents up to the toplevel widget are also visible. Once the map has occurred, GtkWidget::map-event will be emitted.

Gtk.Widget::map-event

The ::map-event signal will be emitted when the widgets window is mapped. A window is mapped when it becomes visible on the screen.

Gtk.Widget::mnemonic-activate

The default handler for this signal activates widget if group_cycling is FALSE, or just makes widget grab focus if group_cycling is TRUE.

Gtk.Widget::motion-notify-event

The ::motion-notify-event signal is emitted when the pointer moves over the widget’s GdkWindow.

Gtk.Widget::move-focus
No description available.
Gtk.Widget::parent-set

The ::parent-set signal is emitted when a new parent has been set on a widget.

Gtk.Widget::popup-menu

This signal gets emitted whenever a widget should pop up a context menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu. For example, the GtkEntry widget creates a menu with clipboard commands. See the [Popup Menu Migration Checklist][checklist-popup-menu] for an example of how to use this signal.

Gtk.Widget::property-notify-event

The ::property-notify-event signal will be emitted when a property on the widgets window has been changed or deleted.

Gtk.Widget::proximity-in-event

To receive this signal the GdkWindow associated to the widget needs to enable the #GDK_PROXIMITY_IN_MASK mask.

Gtk.Widget::proximity-out-event

To receive this signal the GdkWindow associated to the widget needs to enable the #GDK_PROXIMITY_OUT_MASK mask.

Gtk.Widget::query-tooltip

Emitted when GtkWidget:has-tooltip is TRUE and the hover timeout has expired with the cursor hovering “above” widget; or emitted when widget got focus in keyboard mode.

Available since: 2.12

Gtk.Widget::realize

The ::realize signal is emitted when widget is associated with a GdkWindow, which means that gtk_widget_realize() has been called or the widget has been mapped (that is, it is going to be drawn).

Gtk.Widget::screen-changed

The ::screen-changed signal gets emitted when the screen of a widget has changed.

Gtk.Widget::scroll-event

The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

Gtk.Widget::selection-clear-event

The ::selection-clear-event signal will be emitted when the the widgets window has lost ownership of a selection.

Gtk.Widget::selection-get
No description available.
Gtk.Widget::selection-notify-event
No description available.
Gtk.Widget::selection-received
No description available.
Gtk.Widget::selection-request-event

The ::selection-request-event signal will be emitted when another client requests ownership of the selection owned by the widgets window.

Gtk.Widget::show

The ::show signal is emitted when widget is shown, for example with gtk_widget_show().

Gtk.Widget::show-help
No description available.
Gtk.Widget::size-allocate
No description available.
Gtk.Widget::state-changed

The ::state-changed signal is emitted when the widget state changes. See gtk_widget_get_state().

Deprecated since: 3.0

Gtk.Widget::state-flags-changed

The ::state-flags-changed signal is emitted when the widget state changes, see gtk_widget_get_state_flags().

Available since: 3.0

Gtk.Widget::style-set

The ::style-set signal is emitted when a new style has been set on a widget. Note that style-modifying functions like gtk_widget_modify_base() also cause this signal to be emitted.

Deprecated since: 3.0

Gtk.Widget::style-updated

The ::style-updated signal is a convenience signal that is emitted when the GtkStyleContext::changed signal is emitted on the widgets associated GtkStyleContext as returned by gtk_widget_get_style_context().

Available since: 3.0

Gtk.Widget::touch-event
No description available.
Gtk.Widget::unmap

The ::unmap signal is emitted when widget is going to be unmapped, which means that either it or any of its parents up to the toplevel widget have been set as hidden.

Gtk.Widget::unmap-event

The ::unmap-event signal will be emitted when the widgets window is unmapped. A window is unmapped when it becomes invisible on the screen.

Gtk.Widget::unrealize

The ::unrealize signal is emitted when the GdkWindow associated with widget is destroyed, which means that gtk_widget_unrealize() has been called or the widget has been unmapped (that is, it is going to be hidden).

Gtk.Widget::visibility-notify-event

The ::visibility-notify-event will be emitted when the widgets window is obscured or unobscured.

Deprecated since: 3.12

Gtk.Widget::window-state-event

The ::window-state-event will be emitted when the state of the toplevel window associated to the widget changes.

Signals inherited from GObject (1)
GObject.Object::notify

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.

Class structure

struct IdeSourceViewClass {
  GtkSourceViewClass parent_class;
  void (* append_to_count) (
    IdeSourceView* self,
    gint digit
  );
  void (* auto_indent) (
    IdeSourceView* self
  );
  void (* begin_macro) (
    IdeSourceView* self
  );
  void (* capture_modifier) (
    IdeSourceView* self
  );
  void (* clear_count) (
    IdeSourceView* self
  );
  void (* clear_modifier) (
    IdeSourceView* self
  );
  void (* clear_search) (
    IdeSourceView* self
  );
  void (* clear_selection) (
    IdeSourceView* self
  );
  void (* clear_snippets) (
    IdeSourceView* self
  );
  void (* cycle_completion) (
    IdeSourceView* self,
    GtkDirectionType direction
  );
  void (* delete_selection) (
    IdeSourceView* self
  );
  void (* end_macro) (
    IdeSourceView* self
  );
  void (* focus_location) (
    IdeSourceView* self,
    IdeLocation* location
  );
  void (* goto_definition) (
    IdeSourceView* self
  );
  void (* hide_completion) (
    IdeSourceView* self
  );
  void (* indent_selection) (
    IdeSourceView* self,
    gint level
  );
  void (* insert_at_cursor_and_indent) (
    IdeSourceView* self,
    const gchar* str
  );
  void (* insert_modifier) (
    IdeSourceView* self,
    gboolean use_count
  );
  void (* jump) (
    IdeSourceView* self,
    const GtkTextIter* from,
    const GtkTextIter* to
  );
  void (* movement) (
    IdeSourceView* self,
    IdeSourceViewMovement movement,
    gboolean extend_selection,
    gboolean exclusive,
    gboolean apply_count
  );
  void (* move_error) (
    IdeSourceView* self,
    GtkDirectionType dir
  );
  void (* move_search) (
    IdeSourceView* self,
    GtkDirectionType dir,
    gboolean extend_selection,
    gboolean select_match,
    gboolean exclusive,
    gboolean apply_count,
    gboolean at_word_boundaries
  );
  void (* paste_clipboard_extended) (
    IdeSourceView* self,
    gboolean smart_lines,
    gboolean after_cursor,
    gboolean place_cursor_at_original
  );
  void (* push_selection) (
    IdeSourceView* self
  );
  void (* pop_selection) (
    IdeSourceView* self
  );
  void (* rebuild_highlight) (
    IdeSourceView* self
  );
  void (* replay_macro) (
    IdeSourceView* self,
    gboolean use_count
  );
  void (* request_documentation) (
    IdeSourceView* self
  );
  void (* restore_insert_mark) (
    IdeSourceView* self
  );
  void (* save_command) (
    IdeSourceView* self
  );
  void (* save_search_char) (
    IdeSourceView* self
  );
  void (* save_insert_mark) (
    IdeSourceView* self
  );
  void (* select_inner) (
    IdeSourceView* self,
    const gchar* inner_left,
    const gchar* inner_right,
    gboolean exclusive,
    gboolean string_mode
  );
  void (* select_tag) (
    IdeSourceView* self,
    gboolean exclusive
  );
  void (* selection_theatric) (
    IdeSourceView* self,
    IdeSourceViewTheatric theatric
  );
  void (* set_mode) (
    IdeSourceView* self,
    const gchar* mode,
    IdeSourceViewModeType type
  );
  void (* set_overwrite) (
    IdeSourceView* self,
    gboolean overwrite
  );
  void (* set_search_text) (
    IdeSourceView* self,
    const gchar* search_text,
    gboolean from_selection
  );
  void (* sort) (
    IdeSourceView* self,
    gboolean ignore_case,
    gboolean reverse
  );
  void (* swap_selection_bounds) (
    IdeSourceView* self
  );
  void (* increase_font_size) (
    IdeSourceView* self
  );
  void (* decrease_font_size) (
    IdeSourceView* self
  );
  void (* reset_font_size) (
    IdeSourceView* self
  );
  void (* begin_rename) (
    IdeSourceView* self
  );
  void (* add_cursor) (
    IdeSourceView* self,
    guint type
  );
  void (* remove_cursors) (
    IdeSourceView* self
  );
  void (* copy_clipboard_extended) (
    IdeSourceView* self
  );
  
}
Class members
parent_class
GtkSourceViewClass
  No description available.
append_to_count
void (* append_to_count) (
    IdeSourceView* self,
    gint digit
  )
  No description available.
auto_indent
void (* auto_indent) (
    IdeSourceView* self
  )
  No description available.
begin_macro
void (* begin_macro) (
    IdeSourceView* self
  )
  No description available.
capture_modifier
void (* capture_modifier) (
    IdeSourceView* self
  )
  No description available.
clear_count
void (* clear_count) (
    IdeSourceView* self
  )
  No description available.
clear_modifier
void (* clear_modifier) (
    IdeSourceView* self
  )
  No description available.
clear_search
void (* clear_search) (
    IdeSourceView* self
  )
  No description available.
clear_selection
void (* clear_selection) (
    IdeSourceView* self
  )
  No description available.
clear_snippets
void (* clear_snippets) (
    IdeSourceView* self
  )
  No description available.
cycle_completion
void (* cycle_completion) (
    IdeSourceView* self,
    GtkDirectionType direction
  )
  No description available.
delete_selection
void (* delete_selection) (
    IdeSourceView* self
  )
  No description available.
end_macro
void (* end_macro) (
    IdeSourceView* self
  )
  No description available.
focus_location
void (* focus_location) (
    IdeSourceView* self,
    IdeLocation* location
  )
  No description available.
goto_definition
void (* goto_definition) (
    IdeSourceView* self
  )
  No description available.
hide_completion
void (* hide_completion) (
    IdeSourceView* self
  )
  No description available.
indent_selection
void (* indent_selection) (
    IdeSourceView* self,
    gint level
  )
  No description available.
insert_at_cursor_and_indent
void (* insert_at_cursor_and_indent) (
    IdeSourceView* self,
    const gchar* str
  )
  No description available.
insert_modifier
void (* insert_modifier) (
    IdeSourceView* self,
    gboolean use_count
  )
  No description available.
jump
void (* jump) (
    IdeSourceView* self,
    const GtkTextIter* from,
    const GtkTextIter* to
  )
  No description available.
movement
void (* movement) (
    IdeSourceView* self,
    IdeSourceViewMovement movement,
    gboolean extend_selection,
    gboolean exclusive,
    gboolean apply_count
  )
  No description available.
move_error
void (* move_error) (
    IdeSourceView* self,
    GtkDirectionType dir
  )
  No description available.
move_search
void (* move_search) (
    IdeSourceView* self,
    GtkDirectionType dir,
    gboolean extend_selection,
    gboolean select_match,
    gboolean exclusive,
    gboolean apply_count,
    gboolean at_word_boundaries
  )
  No description available.
paste_clipboard_extended
void (* paste_clipboard_extended) (
    IdeSourceView* self,
    gboolean smart_lines,
    gboolean after_cursor,
    gboolean place_cursor_at_original
  )
  No description available.
push_selection
void (* push_selection) (
    IdeSourceView* self
  )
  No description available.
pop_selection
void (* pop_selection) (
    IdeSourceView* self
  )
  No description available.
rebuild_highlight
void (* rebuild_highlight) (
    IdeSourceView* self
  )
  No description available.
replay_macro
void (* replay_macro) (
    IdeSourceView* self,
    gboolean use_count
  )
  No description available.
request_documentation
void (* request_documentation) (
    IdeSourceView* self
  )
  No description available.
restore_insert_mark
void (* restore_insert_mark) (
    IdeSourceView* self
  )
  No description available.
save_command
void (* save_command) (
    IdeSourceView* self
  )
  No description available.
save_search_char
void (* save_search_char) (
    IdeSourceView* self
  )
  No description available.
save_insert_mark
void (* save_insert_mark) (
    IdeSourceView* self
  )
  No description available.
select_inner
void (* select_inner) (
    IdeSourceView* self,
    const gchar* inner_left,
    const gchar* inner_right,
    gboolean exclusive,
    gboolean string_mode
  )
  No description available.
select_tag
void (* select_tag) (
    IdeSourceView* self,
    gboolean exclusive
  )
  No description available.
selection_theatric
void (* selection_theatric) (
    IdeSourceView* self,
    IdeSourceViewTheatric theatric
  )
  No description available.
set_mode
void (* set_mode) (
    IdeSourceView* self,
    const gchar* mode,
    IdeSourceViewModeType type
  )
  No description available.
set_overwrite
void (* set_overwrite) (
    IdeSourceView* self,
    gboolean overwrite
  )
  No description available.
set_search_text
void (* set_search_text) (
    IdeSourceView* self,
    const gchar* search_text,
    gboolean from_selection
  )
  No description available.
sort
void (* sort) (
    IdeSourceView* self,
    gboolean ignore_case,
    gboolean reverse
  )
  No description available.
swap_selection_bounds
void (* swap_selection_bounds) (
    IdeSourceView* self
  )
  No description available.
increase_font_size
void (* increase_font_size) (
    IdeSourceView* self
  )
  No description available.
decrease_font_size
void (* decrease_font_size) (
    IdeSourceView* self
  )
  No description available.
reset_font_size
void (* reset_font_size) (
    IdeSourceView* self
  )
  No description available.
begin_rename
void (* begin_rename) (
    IdeSourceView* self
  )
  No description available.
add_cursor
void (* add_cursor) (
    IdeSourceView* self,
    guint type
  )
  No description available.
remove_cursors
void (* remove_cursors) (
    IdeSourceView* self
  )
  No description available.
copy_clipboard_extended
void (* copy_clipboard_extended) (
    IdeSourceView* self
  )
  No description available.

Virtual methods

Ide.SourceViewClass.add_cursor
No description available.
Ide.SourceViewClass.append_to_count
No description available.
Ide.SourceViewClass.auto_indent
No description available.
Ide.SourceViewClass.begin_macro
No description available.
Ide.SourceViewClass.begin_rename
No description available.
Ide.SourceViewClass.capture_modifier
No description available.
Ide.SourceViewClass.clear_count
No description available.
Ide.SourceViewClass.clear_modifier
No description available.
No description available.
Ide.SourceViewClass.clear_selection
No description available.
Ide.SourceViewClass.clear_snippets
No description available.
Ide.SourceViewClass.cycle_completion
No description available.
Ide.SourceViewClass.decrease_font_size
No description available.
Ide.SourceViewClass.delete_selection
No description available.
Ide.SourceViewClass.end_macro
No description available.
Ide.SourceViewClass.focus_location
No description available.
Ide.SourceViewClass.goto_definition
No description available.
Ide.SourceViewClass.hide_completion
No description available.
Ide.SourceViewClass.increase_font_size
No description available.
Ide.SourceViewClass.indent_selection
No description available.
Ide.SourceViewClass.insert_modifier
No description available.
Ide.SourceViewClass.jump
No description available.
Ide.SourceViewClass.move_error
No description available.
No description available.
Ide.SourceViewClass.movement
No description available.
Ide.SourceViewClass.pop_selection
No description available.
Ide.SourceViewClass.push_selection
No description available.
Ide.SourceViewClass.rebuild_highlight
No description available.
Ide.SourceViewClass.remove_cursors
No description available.
Ide.SourceViewClass.replay_macro
No description available.
Ide.SourceViewClass.request_documentation
No description available.
Ide.SourceViewClass.reset_font_size
No description available.
Ide.SourceViewClass.restore_insert_mark
No description available.
Ide.SourceViewClass.save_command
No description available.
Ide.SourceViewClass.save_insert_mark
No description available.
Ide.SourceViewClass.save_search_char
No description available.
Ide.SourceViewClass.select_inner
No description available.
Ide.SourceViewClass.select_tag
No description available.
Ide.SourceViewClass.selection_theatric
No description available.
Ide.SourceViewClass.set_mode
No description available.
Ide.SourceViewClass.set_overwrite
No description available.
Ide.SourceViewClass.set_search_text
No description available.
Ide.SourceViewClass.sort
No description available.
Ide.SourceViewClass.swap_selection_bounds
No description available.