summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-07-12 11:29:52 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-12 11:58:43 +0000
commit29089b562ea6d0137cf054d9710b7238e327aa4f (patch)
treecff8665bfca64f01f76e7e1a3a8a3c331a935060 /libreofficekit
parent3d4a68aa04d13de374641792d3d4981783045dbd (diff)
lokdocview: log the view id of the callback messages
So that e.g. it's possible to see which invalidation affects which view. Change-Id: I6b6db2fa07eaecd1315ce8160c3b3b86e9e5a348 Reviewed-on: https://gerrit.libreoffice.org/27138 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 667b4d4feb98..f65bfcdd302f 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1271,7 +1271,10 @@ static void callbackWorker (int nType, const char* pPayload, void* pData)
LOKDocView* pDocView = LOK_DOC_VIEW (pData);
CallbackData* pCallback = new CallbackData(nType, pPayload ? pPayload : "(nil)", pDocView);
- g_info("callbackWorker: %s, '%s'", callbackTypeToString(nType), pPayload);
+ LOKDocViewPrivate& priv = getPrivate(pDocView);
+ std::stringstream ss;
+ ss << "callbackWorker, view #" << priv->m_nViewId << ": " << callbackTypeToString(nType) << ", '" << pPayload << "'";
+ g_info("%s", ss.str().c_str());
gdk_threads_add_idle(callback, pCallback);
}