diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-11-14 15:21:46 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-11-15 10:11:02 +0100 |
commit | bde2eeddf27483dc598cdf02ff2d23ec0cbc53d8 (patch) | |
tree | 6d8194fe6a0c1e448d859c2cf93ac18dcfdf9324 /libreofficekit | |
parent | 8c4c1abc9ffa7d9f893d4d16de61594ee090f10b (diff) |
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@collabora.com>
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
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; |