| Top |
| gchar * | content-type | Read / Write |
| gchar * | mime-type | Read |
| gboolean | read-only | Read |
| gchar * | shortname | Read / Write |
| gboolean | use-gvfs-metadata | Read / Write / Construct Only |
GtkSourceFile *
xed_document_get_file (XedDocument *doc);
Gets the associated GtkSourceFile. You should use it only for reading purposes, not for creating a GtkSourceFileLoader or GtkSourceFileSaver, because xed does some extra work when loading or saving a file and maintains an internal state. If you use in a plugin a file loader or saver on the returned GtkSourceFile, the internal state of xed won't be updated.
If you want to save the GeditDocument to a secondary file, you can create a new GtkSourceFile and use a GtkSourceFileSaver.
gchar *
xed_document_get_uri_for_display (XedDocument *doc);
Note: this never returns NULL.
gchar *
xed_document_get_short_name_for_display
(XedDocument *doc);
Note: this never returns NULL.
void xed_document_set_short_name_for_display (XedDocument *doc,const gchar *short_name);
gchar *
xed_document_get_mime_type (XedDocument *doc);
Note: this never returns NULL.
gboolean xed_document_goto_line_offset (XedDocument *doc,gint line,gint line_offset);
void xed_document_set_language (XedDocument *doc,GtkSourceLanguage *lang);
gchar * xed_document_get_metadata (XedDocument *doc,const gchar *key);
Gets the metadata assigned to key
.
“content-type” property“content-type” gchar *
The documents content type.
Owner: XedDocument
Flags: Read / Write
Default value: NULL
“mime-type” property“mime-type” gchar *
The documents MIME type.
Owner: XedDocument
Flags: Read
Default value: "text/plain"
“read-only” property“read-only” gboolean
Whether the document is read-only or not.
Owner: XedDocument
Flags: Read
Default value: FALSE
“shortname” property“shortname” gchar *
The documents short name.
Owner: XedDocument
Flags: Read / Write
Default value: NULL
“use-gvfs-metadata” property“use-gvfs-metadata” gboolean
Whether to use GVFS metadata. If FALSE, use the xed metadata
manager that stores the metadata in an XML file in the user cache
directory.
Owner: XedDocument
Flags: Read / Write / Construct Only
Default value: TRUE
“cursor-moved” signalvoid user_function (XedDocument *xeddocument, gpointer user_data)
Flags: Run Last
“load” signalvoid user_function (XedDocument *document, gpointer user_data)
The "load" signal is emitted at the beginning of file loading.
Flags: Run Last
“loaded” signalvoid user_function (XedDocument *document, gpointer user_data)
The "loaded" signal is emitted at the end of a successful loading.
Flags: Run First
“save” signalvoid user_function (XedDocument *document, gpointer user_data)
The "save" signal is emitted at the beginning of file saving.
Flags: Run Last
“saved” signalvoid user_function (XedDocument *document, gpointer user_data)
The "saved" signal is emitted at the end of a successful file saving.
Flags: Run First