[Libreoffice-commits] core.git: libreofficekit/source

Miklos Vajna vmiklos at collabora.co.uk
Tue Jul 12 11:59:05 UTC 2016


 libreofficekit/source/gtk/lokdocview.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 29089b562ea6d0137cf054d9710b7238e327aa4f
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Jul 12 11:29:52 2016 +0200

    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 at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 667b4d4..f65bfcd 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);
 }
 


More information about the Libreoffice-commits mailing list