Top | ![]() |
![]() |
![]() |
![]() |
void | xed_commands_load_location () |
GSList * | xed_commands_load_locations () |
void | xed_commands_save_document () |
void | xed_commands_save_document_async () |
gboolean | xed_commands_save_document_finish () |
void | xed_commands_save_all_documents () |
void xed_commands_load_location (XedWindow *window
,GFile *location
,const GtkSourceEncoding *encoding
,gint line_pos
);
Loads location
. Ignores non-existing locations
GSList * xed_commands_load_locations (XedWindow *window
,const GSList *locations
,const GtkSourceEncoding *encoding
,gint line_pos
);
Loads locataions
. Ignore non-existing locations
void xed_commands_save_document (XedWindow *window
,XedDocument *document
);
Asynchronously save document
. document
must belong to window
. If you need
the result of the operation, use xed_commands_save_document_async()
.
void xed_commands_save_document_async (XedDocument *document
,XedWindow *window
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously save the document
. document
must belong to window
. The
source object of the async task is document
(which will be the first
parameter of the GAsyncReadyCallback).
When the operation is finished, callback
will be called. You can then call
xed_commands_save_document_finish()
to get the result of the operation.
document |
the XedDocument to save. |
|
window |
a XedWindow. |
|
cancellable |
optional GCancellable object, |
[nullable] |
callback |
a GAsyncReadyCallback to call when the operation is finished. |
[scope async] |
user_data |
the data to pass to the |
[closure] |
gboolean xed_commands_save_document_finish (XedDocument *document
,GAsyncResult *result
);
Finishes an asynchronous document saving operation started with
xed_commands_save_document_async()
.
Note that there is no error parameter because the errors are already handled by xed.