summaryrefslogtreecommitdiff
path: root/src/gui_beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-09 22:13:24 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-09 22:13:24 +0200
commitd47d83745ff450232328ca7a4b8b00b31bad22fc (patch)
treed31c75ba0d362c58fcdfee797661b63b9c8f9fd0 /src/gui_beval.c
parent46643713dc6bb04b4e84986b1763ef309e960161 (diff)
downloadvim-git-d47d83745ff450232328ca7a4b8b00b31bad22fc.tar.gz
patch 7.4.2358v7.4.2358
Problem: Compiler warnings with Solaris Studio when using GTK3. Solution: Define FUNC2GENERIC depending on the system. (Kazunobu Kuriyama)
Diffstat (limited to 'src/gui_beval.c')
-rw-r--r--src/gui_beval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_beval.c b/src/gui_beval.c
index ac1df47d0..4a7c06ed9 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -508,7 +508,7 @@ removeEventHandler(BalloonEval *beval)
/* LINTED: avoid warning: dubious operation on enum */
# if GTK_CHECK_VERSION(3,0,0)
g_signal_handlers_disconnect_by_func(G_OBJECT(beval->target),
- G_CALLBACK(target_event_cb),
+ FUNC2GENERIC(target_event_cb),
beval);
# else
gtk_signal_disconnect_by_func((GtkObject*)(beval->target),
@@ -522,7 +522,7 @@ removeEventHandler(BalloonEval *beval)
/* LINTED: avoid warning: dubious operation on enum */
# if GTK_CHECK_VERSION(3,0,0)
g_signal_handlers_disconnect_by_func(G_OBJECT(gui.mainwin),
- G_CALLBACK(mainwin_event_cb),
+ FUNC2GENERIC(mainwin_event_cb),
beval);
# else
gtk_signal_disconnect_by_func((GtkObject*)(gui.mainwin),