[glib/gsettings] use G_SIGNAL_TYPE_STATIC_SCOPE instead of a hack



commit c76ccdb21e8e037b784a24bdb18062ac103a84fb
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Sep 30 13:11:01 2009 -0400

    use G_SIGNAL_TYPE_STATIC_SCOPE instead of a hack
    
    thanks owen :)

 gio/gsettings.c        |    4 ++--
 gio/gsettingsbackend.c |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index cdfefe6..3eb54f6 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -461,8 +461,8 @@ g_settings_class_init (GSettingsClass *class)
                   G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
                   G_STRUCT_OFFSET (GSettingsClass, changed),
                   NULL, NULL,
-                  g_cclosure_marshal_VOID__POINTER,
-                  G_TYPE_NONE, 1, G_TYPE_POINTER);
+                  g_cclosure_marshal_VOID__STRING,
+                  G_TYPE_NONE, 1, G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
 
   g_settings_signals[SIGNAL_DESTROYED] =
     g_signal_new ("destroyed", G_TYPE_SETTINGS,
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index 02d2b78..4398bd3 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -253,7 +253,9 @@ g_settings_backend_class_init (GSettingsBackendClass *class)
                   G_STRUCT_OFFSET (GSettingsBackendClass, changed),
                   NULL, NULL,
                   _gio_marshal_VOID__STRING_BOXED_INT_POINTER, G_TYPE_NONE,
-                  4, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_INT, G_TYPE_POINTER);
+                  4, G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
+                  G_TYPE_STRV | G_SIGNAL_TYPE_STATIC_SCOPE,
+                  G_TYPE_INT, G_TYPE_POINTER);
 }
 
 /**



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