Class
PlumaDocument
since: 1.0
Instance methods
pluma_document_save
Save the document to its previous location. This results in the “save” signal to be emitted.
since: 1.0
pluma_document_save_as
Save the document to a new location. This results in the “save” signal to be emitted.
since: 1.0
Methods inherited from GtkSourceBuffer (35)
Please see GtkSourceBuffer for a full list of methods.
Methods inherited from GtkTextBuffer (73)
Please see GtkTextBuffer for a full list of methods.
Properties
Pluma.Document:newline-type
The :newline-type property determines what is considered as a line ending when saving the document.
since: 1.0
Properties inherited from GtkSourceBuffer (9)
GtkSource.Buffer:can-redo
unstable since: 4
GtkSource.Buffer:can-undo
unstable since: 4
GtkSource.Buffer:highlight-matching-brackets
Whether to highlight matching brackets in the buffer.
unstable since: 4
GtkSource.Buffer:highlight-syntax
Whether to highlight syntax in the buffer.
unstable since: 4
GtkSource.Buffer:implicit-trailing-newline
Whether the buffer has an implicit trailing newline. See gtk_source_buffer_set_implicit_trailing_newline().
unstable since: 3.14
GtkSource.Buffer:language
unstable since: 4
GtkSource.Buffer:max-undo-levels
Number of undo levels for the buffer. -1 means no limit. This property will only affect the default undo manager.
unstable since: 4
GtkSource.Buffer:style-scheme
Style scheme. It contains styles for syntax highlighting, optionally foreground, background, cursor color, current line color, and matching brackets style.
unstable since: 4
GtkSource.Buffer:undo-manager
unstable since: 4
Properties inherited from GtkTextBuffer (6)
Gtk.TextBuffer:copy-target-list
The list of targets this buffer supports for clipboard copying and as DND source.
unstable since: 2.10
Gtk.TextBuffer:cursor-position
The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.
unstable since: 2.10
Gtk.TextBuffer:has-selection
Whether the buffer has some text currently selected.
unstable since: 2.10
Gtk.TextBuffer:paste-target-list
The list of targets this buffer supports for clipboard pasting and as DND destination.
unstable since: 2.10
Gtk.TextBuffer:tag-table
unstable since: 3.0
Gtk.TextBuffer:text
The text content of the buffer. Without child widgets and images,
see gtk_text_buffer_get_text() for more information.
unstable since: 2.8
Signals
Signals inherited from GtkSourceBuffer (5)
GtkSourceBuffer::bracket-matched
iter is set to a valid iterator pointing to the matching bracket
if state is GTK_SOURCE_BRACKET_MATCH_FOUND. Otherwise iter is meaningless.
unstable since: 2.12
GtkSourceBuffer::highlight-updated
The ::highlight-updated signal is emitted when the syntax
highlighting and [context classes][context-classes] are updated in a
certain region of the buffer.
unstable since: 4
GtkSourceBuffer::redo
The ::redo signal is emitted to redo the last undo operation.
unstable since: 4
GtkSourceBuffer::source-mark-updated
The ::source-mark-updated signal is emitted each time
a mark is added to, moved or removed from the buffer.
unstable since: 4
GtkSourceBuffer::undo
The ::undo signal is emitted to undo the last user action which modified the buffer.
unstable since: 4
Signals inherited from GtkTextBuffer (13)
GtkTextBuffer::apply-tag
The ::apply-tag signal is emitted to apply a tag to a
range of text in a GtkTextBuffer.
Applying actually occurs in the default handler.
unstable since: 3.0
GtkTextBuffer::begin-user-action
The ::begin-user-action signal is emitted at the beginning of a single
user-visible operation on a GtkTextBuffer.
unstable since: 3.0
GtkTextBuffer::changed
The ::changed signal is emitted when the content of a GtkTextBuffer
has changed.
unstable since: 3.0
GtkTextBuffer::delete-range
The ::delete-range signal is emitted to delete a range
from a GtkTextBuffer.
unstable since: 3.0
GtkTextBuffer::end-user-action
The ::end-user-action signal is emitted at the end of a single
user-visible operation on the GtkTextBuffer.
unstable since: 3.0
GtkTextBuffer::insert-child-anchor
The ::insert-child-anchor signal is emitted to insert a
GtkTextChildAnchor in a GtkTextBuffer.
Insertion actually occurs in the default handler.
unstable since: 3.0
GtkTextBuffer::insert-pixbuf
The ::insert-pixbuf signal is emitted to insert a GdkPixbuf
in a GtkTextBuffer. Insertion actually occurs in the default handler.
unstable since: 3.0
GtkTextBuffer::insert-text
The ::insert-text signal is emitted to insert text in a GtkTextBuffer.
Insertion actually occurs in the default handler.
unstable since: 3.0
GtkTextBuffer::mark-deleted
The ::mark-deleted signal is emitted as notification
after a GtkTextMark is deleted.
unstable since: 3.0
GtkTextBuffer::mark-set
The ::mark-set signal is emitted as notification
after a GtkTextMark is set.
unstable since: 3.0
GtkTextBuffer::modified-changed
The ::modified-changed signal is emitted when the modified bit of a
GtkTextBuffer flips.
unstable since: 3.0
GtkTextBuffer::paste-done
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.
unstable since: 2.16
GtkTextBuffer::remove-tag
The ::remove-tag signal is emitted to remove all occurrences of tag from
a range of text in a GtkTextBuffer.
Removal actually occurs in the default handler.
unstable since: 3.0
Signals inherited from GObject (1)
GObject::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.
unstable since: 2.0
Class structure
struct PlumaDocumentClass {
GtkSourceBufferClass parent_class;
void (* cursor_moved) (
PlumaDocument* document
);
void (* load) (
PlumaDocument* document,
const gchar* uri,
const PlumaEncoding* encoding,
gint line_pos,
gboolean create
);
void (* loading) (
PlumaDocument* document,
goffset size,
goffset total_size
);
void (* loaded) (
PlumaDocument* document,
const GError* error
);
void (* save) (
PlumaDocument* document,
const gchar* uri,
const PlumaEncoding* encoding,
PlumaDocumentSaveFlags flags
);
void (* saving) (
PlumaDocument* document,
goffset size,
goffset total_size
);
void (* saved) (
PlumaDocument* document,
const GError* error
);
void (* search_highlight_updated) (
PlumaDocument* document,
GtkTextIter* start,
GtkTextIter* end
);
}
Class members
parent_class: GtkSourceBufferClass- No description available.
cursor_moved: void (* cursor_moved) ( PlumaDocument* document )- No description available.
load: void (* load) ( PlumaDocument* document, const gchar* uri, const PlumaEncoding* encoding, gint line_pos, gboolean create )- No description available.
loading: void (* loading) ( PlumaDocument* document, goffset size, goffset total_size )- No description available.
loaded: void (* loaded) ( PlumaDocument* document, const GError* error )- No description available.
save: void (* save) ( PlumaDocument* document, const gchar* uri, const PlumaEncoding* encoding, PlumaDocumentSaveFlags flags )- No description available.
saving: void (* saving) ( PlumaDocument* document, goffset size, goffset total_size )- No description available.
saved: void (* saved) ( PlumaDocument* document, const GError* error )- No description available.
search_highlight_updated: void (* search_highlight_updated) ( PlumaDocument* document, GtkTextIter* start, GtkTextIter* end )- No description available.
Virtual methods
Pluma.DocumentClass.load
Load a document. This results in the “load” signal to be emitted.
since: 1.0