marshallers: ensure g_cclosure_marshal_VOID__VOIDv is used

If we set c_marshaller manually, then g_signal_newv() will not setup a
va_marshaller for us. However, if we provide c_marshaller as NULL, it will
setup both the c_marshaller (to g_cclosure_marshal_VOID__VOID) and
va_marshaller (to g_cclosure_marshal_VOID__VOIDv) for us.
This commit is contained in:
Christian Hergert
2019-05-29 13:27:53 -07:00
parent 47d24c34cd
commit a8a56e8a0e
40 changed files with 76 additions and 83 deletions

View File

@ -324,7 +324,7 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkRecentManagerClass, changed),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
NULL,
G_TYPE_NONE, 0);
klass->changed = gtk_recent_manager_real_changed;