[glib] Pass in NULL instead of g_cclosure_marshal_generic



commit ec98953e42a20061427b20681d1e31501907e2fa
Author: Johan Dahlin <johan gnome org>
Date:   Tue Jul 19 14:18:10 2011 -0300

    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

 gio/gactiongroup.c             |    4 ++--
 gio/gapplication.c             |    4 ++--
 gio/gdbusauthobserver.c        |    2 +-
 gio/gdbusconnection.c          |    2 +-
 gio/gdbusinterfaceskeleton.c   |    2 +-
 gio/gdbusobjectmanager.c       |    4 ++--
 gio/gdbusobjectmanagerclient.c |    4 ++--
 gio/gdbusobjectskeleton.c      |    2 +-
 gio/gdbusproxy.c               |    4 ++--
 gio/gdbusserver.c              |    2 +-
 gio/gfilemonitor.c             |    2 +-
 gio/gmountoperation.c          |    6 +++---
 gio/gsettings.c                |    4 ++--
 gio/gsocketservice.c           |    2 +-
 gio/gthreadedsocketservice.c   |    2 +-
 gio/gtlsconnection.c           |    2 +-
 16 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/gio/gactiongroup.c b/gio/gactiongroup.c
index 0f9b045..d097de3 100644
--- a/gio/gactiongroup.c
+++ b/gio/gactiongroup.c
@@ -123,7 +123,7 @@ g_action_group_default_init (GActionGroupInterface *class)
                   G_STRUCT_OFFSET (GActionGroupInterface,
                                    action_enabled_changed),
                   NULL, NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_NONE, 2,
                   G_TYPE_STRING,
                   G_TYPE_BOOLEAN);
@@ -147,7 +147,7 @@ g_action_group_default_init (GActionGroupInterface *class)
                   G_STRUCT_OFFSET (GActionGroupInterface,
                                    action_state_changed),
                   NULL, NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_NONE, 2,
                   G_TYPE_STRING,
                   G_TYPE_VARIANT);
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 5e07976..da63924 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -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));
diff --git a/gio/gdbusauthobserver.c b/gio/gdbusauthobserver.c
index 1a81b95..b3a1353 100644
--- a/gio/gdbusauthobserver.c
+++ b/gio/gdbusauthobserver.c
@@ -159,7 +159,7 @@ g_dbus_auth_observer_class_init (GDBusAuthObserverClass *klass)
                   G_STRUCT_OFFSET (GDBusAuthObserverClass, authorize_authenticated_peer),
                   _g_signal_accumulator_false_handled,
                   NULL, /* accu_data */
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_BOOLEAN,
                   2,
                   G_TYPE_IO_STREAM,
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 37e9b80..fe12408 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -899,7 +899,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
                                          G_STRUCT_OFFSET (GDBusConnectionClass, closed),
                                          NULL,
                                          NULL,
-                                         g_cclosure_marshal_generic,
+                                         NULL,
                                          G_TYPE_NONE,
                                          2,
                                          G_TYPE_BOOLEAN,
diff --git a/gio/gdbusinterfaceskeleton.c b/gio/gdbusinterfaceskeleton.c
index 6c7ba7d..f0f65b0 100644
--- a/gio/gdbusinterfaceskeleton.c
+++ b/gio/gdbusinterfaceskeleton.c
@@ -216,7 +216,7 @@ g_dbus_interface_skeleton_class_init (GDBusInterfaceSkeletonClass *klass)
                   G_STRUCT_OFFSET (GDBusInterfaceSkeletonClass, g_authorize_method),
                   _g_signal_accumulator_false_handled,
                   NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_BOOLEAN,
                   1,
                   G_TYPE_DBUS_METHOD_INVOCATION);
diff --git a/gio/gdbusobjectmanager.c b/gio/gdbusobjectmanager.c
index 3bdd970..3a7a5ec 100644
--- a/gio/gdbusobjectmanager.c
+++ b/gio/gdbusobjectmanager.c
@@ -108,7 +108,7 @@ g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
                 G_STRUCT_OFFSET (GDBusObjectManagerIface, interface_added),
                 NULL,
                 NULL,
-                g_cclosure_marshal_generic,
+                NULL,
                 G_TYPE_NONE,
                 2,
                 G_TYPE_DBUS_OBJECT,
@@ -133,7 +133,7 @@ g_dbus_object_manager_default_init (GDBusObjectManagerIface *iface)
                 G_STRUCT_OFFSET (GDBusObjectManagerIface, interface_removed),
                 NULL,
                 NULL,
-                g_cclosure_marshal_generic,
+                NULL,
                 G_TYPE_NONE,
                 2,
                 G_TYPE_DBUS_OBJECT,
diff --git a/gio/gdbusobjectmanagerclient.c b/gio/gdbusobjectmanagerclient.c
index e812c88..0ccd560 100644
--- a/gio/gdbusobjectmanagerclient.c
+++ b/gio/gdbusobjectmanagerclient.c
@@ -513,7 +513,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
                   G_STRUCT_OFFSET (GDBusObjectManagerClientClass, interface_proxy_signal),
                   NULL,
                   NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_NONE,
                   5,
                   G_TYPE_DBUS_OBJECT_PROXY,
@@ -551,7 +551,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
                   G_STRUCT_OFFSET (GDBusObjectManagerClientClass, interface_proxy_properties_changed),
                   NULL,
                   NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_NONE,
                   4,
                   G_TYPE_DBUS_OBJECT_PROXY,
diff --git a/gio/gdbusobjectskeleton.c b/gio/gdbusobjectskeleton.c
index 365cdfe..869007e 100644
--- a/gio/gdbusobjectskeleton.c
+++ b/gio/gdbusobjectskeleton.c
@@ -186,7 +186,7 @@ g_dbus_object_skeleton_class_init (GDBusObjectSkeletonClass *klass)
                   G_STRUCT_OFFSET (GDBusObjectSkeletonClass, authorize_method),
                   _g_signal_accumulator_false_handled,
                   NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_BOOLEAN,
                   2,
                   G_TYPE_DBUS_INTERFACE_SKELETON,
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index 5e82e32..73359dc 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -566,7 +566,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
                                                      G_STRUCT_OFFSET (GDBusProxyClass, g_properties_changed),
                                                      NULL,
                                                      NULL,
-                                                     g_cclosure_marshal_generic,
+                                                     NULL,
                                                      G_TYPE_NONE,
                                                      2,
                                                      G_TYPE_VARIANT,
@@ -589,7 +589,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
                                          G_STRUCT_OFFSET (GDBusProxyClass, g_signal),
                                          NULL,
                                          NULL,
-                                         g_cclosure_marshal_generic,
+                                         NULL,
                                          G_TYPE_NONE,
                                          3,
                                          G_TYPE_STRING,
diff --git a/gio/gdbusserver.c b/gio/gdbusserver.c
index e7beb48..472fc32 100644
--- a/gio/gdbusserver.c
+++ b/gio/gdbusserver.c
@@ -425,7 +425,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
                                                   G_STRUCT_OFFSET (GDBusServerClass, new_connection),
                                                   g_signal_accumulator_true_handled,
                                                   NULL, /* accu_data */
-                                                  g_cclosure_marshal_generic,
+                                                  NULL,
                                                   G_TYPE_BOOLEAN,
                                                   1,
                                                   G_TYPE_DBUS_CONNECTION);
diff --git a/gio/gfilemonitor.c b/gio/gfilemonitor.c
index 7e62874..6cd5ad6 100644
--- a/gio/gfilemonitor.c
+++ b/gio/gfilemonitor.c
@@ -240,7 +240,7 @@ g_file_monitor_class_init (GFileMonitorClass *klass)
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GFileMonitorClass, changed),
 		  NULL, NULL,
-		  g_cclosure_marshal_generic,
+		  NULL,
 		  G_TYPE_NONE, 3,
 		  G_TYPE_FILE, G_TYPE_FILE, G_TYPE_FILE_MONITOR_EVENT);
 
diff --git a/gio/gmountoperation.c b/gio/gmountoperation.c
index ef6486b..525943a 100644
--- a/gio/gmountoperation.c
+++ b/gio/gmountoperation.c
@@ -275,7 +275,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GMountOperationClass, ask_password),
 		  NULL, NULL,
-		  g_cclosure_marshal_generic,
+		  NULL,
 		  G_TYPE_NONE, 4,
 		  G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_ASK_PASSWORD_FLAGS);
 		  
@@ -298,7 +298,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GMountOperationClass, ask_question),
 		  NULL, NULL,
-		  g_cclosure_marshal_generic,
+		  NULL,
 		  G_TYPE_NONE, 2,
 		  G_TYPE_STRING, G_TYPE_STRV);
 		  
@@ -367,7 +367,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GMountOperationClass, show_processes),
 		  NULL, NULL,
-		  g_cclosure_marshal_generic,
+		  NULL,
 		  G_TYPE_NONE, 3,
 		  G_TYPE_STRING, G_TYPE_ARRAY, G_TYPE_STRV);
 
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 251fe20..5aec4ea 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -620,7 +620,7 @@ g_settings_class_init (GSettingsClass *class)
                   G_SIGNAL_RUN_LAST,
                   G_STRUCT_OFFSET (GSettingsClass, change_event),
                   g_signal_accumulator_true_handled, NULL,
-                  g_cclosure_marshal_generic,
+                  NULL,
                   G_TYPE_BOOLEAN, 2, G_TYPE_POINTER, G_TYPE_INT);
 
   /**
@@ -674,7 +674,7 @@ g_settings_class_init (GSettingsClass *class)
                   G_SIGNAL_RUN_LAST,
                   G_STRUCT_OFFSET (GSettingsClass, writable_change_event),
                   g_signal_accumulator_true_handled, NULL,
-                  g_cclosure_marshal_generic, G_TYPE_BOOLEAN, 1, G_TYPE_UINT);
+                  NULL, G_TYPE_BOOLEAN, 1, G_TYPE_UINT);
 
   /**
    * GSettings:context:
diff --git a/gio/gsocketservice.c b/gio/gsocketservice.c
index 9e4e6b3..96a4342 100644
--- a/gio/gsocketservice.c
+++ b/gio/gsocketservice.c
@@ -270,7 +270,7 @@ g_socket_service_class_init (GSocketServiceClass *class)
     g_signal_new ("incoming", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST,
                   G_STRUCT_OFFSET (GSocketServiceClass, incoming),
                   g_signal_accumulator_true_handled, NULL,
-                  g_cclosure_marshal_generic, G_TYPE_BOOLEAN,
+                  NULL, G_TYPE_BOOLEAN,
                   2, G_TYPE_SOCKET_CONNECTION, G_TYPE_OBJECT);
 }
 
diff --git a/gio/gthreadedsocketservice.c b/gio/gthreadedsocketservice.c
index af2ce32..475c1e1 100644
--- a/gio/gthreadedsocketservice.c
+++ b/gio/gthreadedsocketservice.c
@@ -238,7 +238,7 @@ g_threaded_socket_service_class_init (GThreadedSocketServiceClass *class)
     g_signal_new ("run", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GThreadedSocketServiceClass, run),
 		  g_signal_accumulator_true_handled, NULL,
-		  g_cclosure_marshal_generic, G_TYPE_BOOLEAN,
+		  NULL, G_TYPE_BOOLEAN,
 		  2, G_TYPE_SOCKET_CONNECTION, G_TYPE_OBJECT);
 
   g_object_class_install_property (gobject_class, PROP_MAX_THREADS,
diff --git a/gio/gtlsconnection.c b/gio/gtlsconnection.c
index 74da0e4..60c90bf 100644
--- a/gio/gtlsconnection.c
+++ b/gio/gtlsconnection.c
@@ -264,7 +264,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GTlsConnectionClass, accept_certificate),
 		  g_signal_accumulator_true_handled, NULL,
-		  g_cclosure_marshal_generic,
+		  NULL,
 		  G_TYPE_BOOLEAN, 2,
 		  G_TYPE_TLS_CERTIFICATE,
 		  G_TYPE_TLS_CERTIFICATE_FLAGS);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]