From 5217cbcd9d49cd85ae5d171cde005b7df935d8a1 Mon Sep 17 00:00:00 2001 From: Christopher Blizzard Date: Sat, 8 Dec 2001 23:52:50 +0000 Subject: [PATCH] Explicitly add a cast to the last argument so that the macro will work 2001-12-08 Christopher Blizzard * gsignal.h (g_signal_connect): Explicitly add a cast to the last argument so that the macro will work from C++. --- gobject/ChangeLog | 5 +++++ gobject/gsignal.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 5473786..8ca5633 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +2001-12-08 Christopher Blizzard + + * gsignal.h (g_signal_connect): Explicitly add a cast to the last + argument so that the macro will work from C++. + 2001-12-06 Tor Lillqvist * makefile.mingw.in (gobject_OBJECTS): Add gsourceclosure.o. diff --git a/gobject/gsignal.h b/gobject/gsignal.h index a08a01d..0a3b4bb 100644 --- a/gobject/gsignal.h +++ b/gobject/gsignal.h @@ -238,7 +238,7 @@ void g_signal_chain_from_overridden (const GValue *instance_and_param /* --- convenience --- */ #define g_signal_connect(instance, detailed_signal, c_handler, data) \ - g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, 0) + g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags)0) #define g_signal_connect_after(instance, detailed_signal, c_handler, data) \ g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_AFTER) #define g_signal_connect_swapped(instance, detailed_signal, c_handler, data) \ -- 2.7.4