summaryrefslogtreecommitdiff
path: root/libreofficekit/source/gtk/lokdocview.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-20 16:21:06 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-23 10:10:30 +0100
commit77debb673e61340dfc3ddc63b6d72731c091c210 (patch)
tree00166a3ca1312f24dd7a1689ec310e11c089e8ac /libreofficekit/source/gtk/lokdocview.c
parent916d40e047ae7a46ce8da05776c66a4e8630c809 (diff)
Extract LibreOfficeKitEnums.h from LibreOfficeKit.h
This massively reduces the rebuild time in case only a new enumeration value is added to one of the enums. Change-Id: I4e58adf36fcd29da1672a5e5091bd3f6744f148d
Diffstat (limited to 'libreofficekit/source/gtk/lokdocview.c')
-rw-r--r--libreofficekit/source/gtk/lokdocview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c
index 132b2d4c8770..31d9430ac331 100644
--- a/libreofficekit/source/gtk/lokdocview.c
+++ b/libreofficekit/source/gtk/lokdocview.c
@@ -13,7 +13,7 @@
#define LOK_USE_UNSTABLE_API
#include <LibreOfficeKit/LibreOfficeKit.h>
-
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <LibreOfficeKit/LibreOfficeKitGtk.h>
#if !GLIB_CHECK_VERSION(2,32,0)
@@ -713,9 +713,9 @@ SAL_DLLPUBLIC_EXPORT char* lok_docview_get_part_name( LOKDocView* pDocView, int
}
SAL_DLLPUBLIC_EXPORT void lok_docview_set_partmode( LOKDocView* pDocView,
- LibreOfficeKitPartMode ePartMode )
+ int nPartMode )
{
- pDocView->pDocument->pClass->setPartMode( pDocView->pDocument, ePartMode );
+ pDocView->pDocument->pClass->setPartMode( pDocView->pDocument, nPartMode );
renderDocument(pDocView, NULL);
}