[gnome-latex] Synctex: fix compil warning (-Wcast-function-type)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] Synctex: fix compil warning (-Wcast-function-type)
- Date: Thu, 10 May 2018 17:16:52 +0000 (UTC)
commit 4db225b65725cdd60c7450f758149f97a0d1870a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu May 10 19:04:22 2018 +0200
Synctex: fix compil warning (-Wcast-function-type)
This warning is enabled by -Wextra.
src/liblatexila/latexila-synctex.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/liblatexila/latexila-synctex.c b/src/liblatexila/latexila-synctex.c
index 43dcef8..be8ea94 100644
--- a/src/liblatexila/latexila-synctex.c
+++ b/src/liblatexila/latexila-synctex.c
@@ -476,6 +476,14 @@ connect_evince_window_finish (LatexilaSynctex *synctex,
g_task_propagate_boolean (G_TASK (result), NULL);
}
+static void
+connect_evince_window_simple_cb (GObject *source_object,
+ GAsyncResult *result,
+ gpointer user_data)
+{
+ connect_evince_window_finish (LATEXILA_SYNCTEX (source_object), result);
+}
+
/**
* latexila_synctex_connect_evince_window:
* @synctex: the #LatexilaSynctex instance.
@@ -491,7 +499,7 @@ latexila_synctex_connect_evince_window (LatexilaSynctex *synctex,
{
connect_evince_window_async (synctex,
pdf_uri,
- (GAsyncReadyCallback) connect_evince_window_finish,
+ connect_evince_window_simple_cb,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]