diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-07-28 18:07:44 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-10-02 10:57:15 +0530 |
commit | 9874cd5efae7fb45f68da0e5ebc7701fdad0414a (patch) | |
tree | f5895b5a779958e436117149bd25943e31e491c2 /libreofficekit/source | |
parent | 706e4d198683f6c2075a91050d21a298ad186cc6 (diff) |
lokdialog: Dialog invalidation support
For now, just invalidate the whole dialog whenever any of the controls
in the dialog get invalidated.
Since during dialog painting, many such invalidations are triggered,
don't listen to them when we are painting.
Change-Id: Ia8fc12cf9469691d60e91ef770d687e5ff01a7ef
Diffstat (limited to 'libreofficekit/source')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 3d4b0fa8279d..4700cffadab6 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -436,6 +436,8 @@ callbackTypeToString (int nType) return "LOK_CALLBACK_COMMENT"; case LOK_CALLBACK_RULER_UPDATE: return "LOK_CALLBACK_RULER_UPDATE"; + case LOK_CALLBACK_DIALOG_INVALIDATE: + return "LOK_CALLBACK_DIALOG_INVALIDATE"; } g_assert(false); return nullptr; @@ -1427,6 +1429,8 @@ callback (gpointer pData) break; case LOK_CALLBACK_RULER_UPDATE: g_signal_emit(pCallback->m_pDocView, doc_view_signals[RULER], 0, pCallback->m_aPayload.c_str()); + case LOK_CALLBACK_DIALOG_INVALIDATE: + // TODO: Register the signal with lokdocview and emit it break; default: g_assert(false); |