mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 07:39:17 +02:00
Mask out G_SIGNAL_TYPE_STATIC_SCOPE when comparing types
This commit is contained in:
parent
d10f79a196
commit
b05ea89d0c
@ -1703,7 +1703,7 @@ g_signal_newv (const gchar *signal_name,
|
|||||||
else if (n_params == 1 && return_type == G_TYPE_NONE)
|
else if (n_params == 1 && return_type == G_TYPE_NONE)
|
||||||
{
|
{
|
||||||
#define ADD_CHECK(__type__) \
|
#define ADD_CHECK(__type__) \
|
||||||
else if (g_type_is_a (param_types[0], G_TYPE_ ##__type__)) \
|
else if (g_type_is_a (param_types[0] & ~G_SIGNAL_TYPE_STATIC_SCOPE, G_TYPE_ ##__type__)) \
|
||||||
{ \
|
{ \
|
||||||
builtin_c_marshaller = g_cclosure_marshal_VOID__ ## __type__; \
|
builtin_c_marshaller = g_cclosure_marshal_VOID__ ## __type__; \
|
||||||
va_marshaller = g_cclosure_marshal_VOID__ ## __type__ ##v; \
|
va_marshaller = g_cclosure_marshal_VOID__ ## __type__ ##v; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user