gtk: rely on default marshallers

Similar to previous removals of g_cclosure_marshal_VOID__VOID we can remove
other marshallers for which are a simple G_TYPE_NONE with single parameter.
In those cases, GLib will setup both a c_marshaller and va_marshaller for
us. Before this commit, we would not get a va_marshaller because the
c_marshaller is set.

Related to GNOME/Initiatives#10
This commit is contained in:
Christian Hergert
2019-05-31 11:12:29 -07:00
parent 689bc42aaf
commit 0f2b019d89
24 changed files with 44 additions and 44 deletions

View File

@ -493,7 +493,7 @@ gtk_ui_manager_class_init (GtkUIManagerClass *klass)
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
G_STRUCT_OFFSET (GtkUIManagerClass, add_widget),
NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
NULL,
G_TYPE_NONE, 1,
GTK_TYPE_WIDGET);