summaryrefslogtreecommitdiffstats
path: root/libreofficekit/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-06 17:31:42 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-06 20:55:25 +0100
commita989d6f5bd6ad9c301259f93ab1fc62a4fcebb93 (patch)
tree20aeab66cef7a50e54233cbcaf449b8dc04deef6 /libreofficekit/source
parentsw: notify LOK clients about invalidations (diff)
downloadcore-a989d6f5bd6ad9c301259f93ab1fc62a4fcebb93.tar.gz
core-a989d6f5bd6ad9c301259f93ab1fc62a4fcebb93.zip
LOK: add LibreOfficeKitCallbackType enumeration
Change-Id: I0147b1985f87f25e70f4d8672beba18fdd9ba6c2
Diffstat (limited to 'libreofficekit/source')
-rw-r--r--libreofficekit/source/gtk/lokdocview.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c
index 8eafb538af1c..4e13f0398dd3 100644
--- a/libreofficekit/source/gtk/lokdocview.c
+++ b/libreofficekit/source/gtk/lokdocview.c
@@ -153,10 +153,16 @@ static void lok_docview_callback(int nType, const char* pPayload, void* pData)
{
LOKDocView* pDocView = pData;
- // TODO for now just always render the document.
- (void)nType;
- (void)pPayload;
- renderDocument( pDocView );
+ switch (nType)
+ {
+ case LOK_CALLBACK_INVALIDATE_TILES:
+ // TODO for now just always render the document.
+ (void)pPayload;
+ renderDocument( pDocView );
+ break;
+ default:
+ break;
+ }
}
SAL_DLLPUBLIC_EXPORT gboolean lok_docview_open_document( LOKDocView* pDocView, char* pPath )