mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Pass in NULL instead of g_cclosure_marshal_generic
NULL is now a shortcut for g_cclosure_marshal_generic, so avoid referencing it directly. https://bugzilla.gnome.org/show_bug.cgi?id=654917
This commit is contained in:
committed by
Johan Dahlin
parent
fa2861e3b6
commit
ec98953e42
@@ -606,7 +606,7 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_application_signals[SIGNAL_OPEN] =
|
||||
g_signal_new ("open", G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, open),
|
||||
NULL, NULL, g_cclosure_marshal_generic,
|
||||
NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_INT, G_TYPE_STRING);
|
||||
|
||||
/**
|
||||
@@ -626,7 +626,7 @@ g_application_class_init (GApplicationClass *class)
|
||||
g_signal_new ("command-line", G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GApplicationClass, command_line),
|
||||
g_signal_accumulator_first_wins, NULL,
|
||||
g_cclosure_marshal_generic,
|
||||
NULL,
|
||||
G_TYPE_INT, 1, G_TYPE_APPLICATION_COMMAND_LINE);
|
||||
|
||||
g_type_class_add_private (class, sizeof (GApplicationPrivate));
|
||||
|
Reference in New Issue
Block a user