mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Add explicit cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
Tue Mar 26 15:21:47 2002 Owen Taylor <otaylor@redhat.com> * gsignal.h (g_signal_handlers_*_by_func): Add explicit cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to GSignalMatchType so that these macros work for C++. (#76454, Damien Sandras)
This commit is contained in:
parent
648204c8bc
commit
564cbf8516
@ -1,3 +1,10 @@
|
||||
Tue Mar 26 15:21:47 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gsignal.h (g_signal_handlers_*_by_func): Add explicit
|
||||
cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
|
||||
GSignalMatchType so that these macros work for C++.
|
||||
(#76454, Damien Sandras)
|
||||
|
||||
Mon Mar 25 17:51:05 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib-mkenums.in (parse_entries): Fix various bugs and
|
||||
|
@ -242,15 +242,18 @@ void g_signal_chain_from_overridden (const GValue *instance_and_param
|
||||
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) \
|
||||
g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED)
|
||||
#define g_signal_handlers_disconnect_by_func(instance, func, data) \
|
||||
g_signal_handlers_disconnect_matched ((instance), G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, \
|
||||
#define g_signal_handlers_disconnect_by_func(instance, func, data) \
|
||||
g_signal_handlers_disconnect_matched ((instance), \
|
||||
(GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), \
|
||||
0, 0, NULL, (func), (data))
|
||||
#define g_signal_handlers_block_by_func(instance, func, data) \
|
||||
g_signal_handlers_block_matched ((instance), G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, \
|
||||
0, 0, NULL, (func), (data))
|
||||
#define g_signal_handlers_unblock_by_func(instance, func, data) \
|
||||
g_signal_handlers_unblock_matched ((instance), G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, \
|
||||
0, 0, NULL, (func), (data))
|
||||
#define g_signal_handlers_block_by_func(instance, func, data) \
|
||||
g_signal_handlers_block_matched ((instance), \
|
||||
(GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), \
|
||||
0, 0, NULL, (func), (data))
|
||||
#define g_signal_handlers_unblock_by_func(instance, func, data) \
|
||||
g_signal_handlers_unblock_matched ((instance), \
|
||||
(GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), \
|
||||
0, 0, NULL, (func), (data))
|
||||
|
||||
|
||||
/*< private >*/
|
||||
|
Loading…
Reference in New Issue
Block a user