[Libreoffice-commits] core.git: libreofficekit/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 15 09:11:26 UTC 2018
libreofficekit/source/gtk/lokdocview.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit bde2eeddf27483dc598cdf02ff2d23ec0cbc53d8
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Nov 14 15:21:46 2018 +0100
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Nov 15 10:11:02 2018 +0100
gtktiledviewer: Compile-time check instead of an annoying assert.
Change-Id: Iece75f6f40bf7d7dfcde372cf9b4606adb9e34b2
Reviewed-on: https://gerrit.libreoffice.org/63390
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index a1bf0d7d70d8..e2d58a632f8f 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -364,7 +364,7 @@ payloadToSize(const char* pPayload, long& rWidth, long& rHeight)
static const char*
callbackTypeToString (int nType)
{
- switch (nType)
+ switch (static_cast<LibreOfficeKitCallbackType>(nType))
{
case LOK_CALLBACK_INVALIDATE_TILES:
return "LOK_CALLBACK_INVALIDATE_TILES";
@@ -440,6 +440,14 @@ callbackTypeToString (int nType)
return "LOK_CALLBACK_RULER_UPDATE";
case LOK_CALLBACK_WINDOW:
return "LOK_CALLBACK_WINDOW";
+ case LOK_CALLBACK_VALIDITY_LIST_BUTTON:
+ return "LOK_CALLBACK_VALIDITY_LIST_BUTTON";
+ case LOK_CALLBACK_CLIPBOARD_CHANGED:
+ return "LOK_CALLBACK_CLIPBOARD_CHANGED";
+ case LOK_CALLBACK_CONTEXT_CHANGED:
+ return "LOK_CALLBACK_CONTEXT_CHANGED";
+ case LOK_CALLBACK_SIGNATURE_STATUS:
+ return "LOK_CALLBACK_SIGNATURE_STATUS";
}
g_assert(false);
return nullptr;
More information about the Libreoffice-commits
mailing list