diff options
author | Pranav Kant <pranavk@gnome.org> | 2015-07-06 22:01:30 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-28 15:04:13 +0200 |
commit | 645f00543405450cd3a3862482dc4e1cda65d098 (patch) | |
tree | 5b8e3c08d84465025a8efd4002052a662fb45d17 /include/LibreOfficeKit | |
parent | d8794a4f414fe6bf5e596d1b6a4cb8831e822278 (diff) |
lokdocview: Call open_document in another thread
This is to keep the widget responsive during document load.
Change-Id: I81acaffc75ca7deddd6cc2de6abae22d009d40cd
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index b98a85646e0e..3f56f08b2dce 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -45,8 +45,15 @@ GtkWidget* lok_doc_view_new (const gchar* GCancellable *cancellable, GError **error); -gboolean lok_doc_view_open_document (LOKDocView* pDocView, - const gchar* pPath); +void lok_doc_view_open_document (LOKDocView* pDocView, + const gchar* pPath, + GCancellable* cancellable, + GAsyncReadyCallback callback, + gpointer userdata); + +gboolean lok_doc_view_open_document_finish (LOKDocView* pDocView, + GAsyncResult* res, + GError** error); /// Gets the document the viewer displays. LibreOfficeKitDocument* lok_doc_view_get_document (LOKDocView* pDocView); |