|
|
135360 |
From f921217577611da13e097a34c18e589e09850927 Mon Sep 17 00:00:00 2001
|
|
|
135360 |
From: Pranav Kant <pranavk@libreoffice.org>
|
|
|
135360 |
Date: Sun, 13 Dec 2015 10:48:45 +0530
|
|
|
135360 |
Subject: [PATCH 373/398] lokdocview: Remove an easy FIXME
|
|
|
135360 |
|
|
|
135360 |
Change-Id: I8305f3eb45330f457089ca0524a0df004410f59c
|
|
|
135360 |
Reviewed-on: https://gerrit.libreoffice.org/20774
|
|
|
135360 |
Reviewed-by: David Tardon <dtardon@redhat.com>
|
|
|
135360 |
Tested-by: David Tardon <dtardon@redhat.com>
|
|
|
135360 |
(cherry picked from commit 244aad533b0fd714136f4f62b5a07fc136c740f0)
|
|
|
135360 |
Reviewed-on: https://gerrit.libreoffice.org/21263
|
|
|
135360 |
Tested-by: Jenkins <ci@libreoffice.org>
|
|
|
135360 |
Reviewed-by: Pranav Kant <pranavk@gnome.org>
|
|
|
135360 |
(cherry picked from commit 2bb2c450a741a539be69494b5308428d07c56adf)
|
|
|
135360 |
---
|
|
|
135360 |
libreofficekit/source/gtk/lokdocview.cxx | 4 ++--
|
|
|
135360 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
135360 |
|
|
|
135360 |
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
|
|
|
135360 |
index 927f4b509bb8..a3e6b21165d9 100644
|
|
|
135360 |
--- a/libreofficekit/source/gtk/lokdocview.cxx
|
|
|
135360 |
+++ b/libreofficekit/source/gtk/lokdocview.cxx
|
|
|
135360 |
@@ -2428,8 +2428,7 @@ lok_doc_view_open_document_finish (LOKDocView* pDocView, GAsyncResult* res, GErr
|
|
|
135360 |
GTask* task = G_TASK(res);
|
|
|
135360 |
|
|
|
135360 |
g_return_val_if_fail(g_task_is_valid(res, pDocView), false);
|
|
|
135360 |
- //FIXME: make source_tag work
|
|
|
135360 |
- //g_return_val_if_fail(g_task_get_source_tag(task) == lok_doc_view_open_document, NULL);
|
|
|
135360 |
+ g_return_val_if_fail(g_task_get_source_tag(task) == lok_doc_view_open_document, false);
|
|
|
135360 |
g_return_val_if_fail(error == nullptr || *error == nullptr, false);
|
|
|
135360 |
|
|
|
135360 |
return g_task_propagate_boolean(task, error);
|
|
|
135360 |
@@ -2454,6 +2453,7 @@ lok_doc_view_open_document (LOKDocView* pDocView,
|
|
|
135360 |
if (pRenderingArguments)
|
|
|
135360 |
priv->m_aRenderingArguments = pRenderingArguments;
|
|
|
135360 |
g_task_set_task_data(task, pLOEvent, LOEvent::destroy);
|
|
|
135360 |
+ g_task_set_source_tag(task, reinterpret_cast<gpointer>(lok_doc_view_open_document));
|
|
|
135360 |
|
|
|
135360 |
g_thread_pool_push(priv->lokThreadPool, g_object_ref(task), &error);
|
|
|
135360 |
if (error != nullptr)
|
|
|
135360 |
--
|
|
|
135360 |
2.12.0
|
|
|
135360 |
|