Intern the signal name.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 31 Aug 2005 19:42:51 +0000 (19:42 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 31 Aug 2005 19:42:51 +0000 (19:42 +0000)
2005-08-31  Matthias Clasen  <mclasen@redhat.com>

* gobject.c (g_object_do_class_init): Intern the signal name.

gobject/ChangeLog
gobject/gobject.c

index 923b88d433767142783542079e0f3257a25a9575..58b519083b60675df26a0de9afa3ee636c6d39a4 100644 (file)
@@ -1,5 +1,10 @@
 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
 
 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
 
+       * gobject.c (g_object_do_class_init): Intern the signal name.
+
+       * gparam.c (g_param_spec_internal): Intern the name here,
+       since we need the quark anyway when sending change notification.
+
        * gboxed.c: 
        * gparamspecs.c: 
        * gtype.c (g_type_init_with_debug_flags): Intern type name
        * gboxed.c: 
        * gparamspecs.c: 
        * gtype.c (g_type_init_with_debug_flags): Intern type name
index 0e3f2cd4aaad0d7a442efadb4d493d5ab9b02059..de409a870fba07023428cbf6a6b12762e77fc024 100644 (file)
@@ -259,7 +259,7 @@ g_object_do_class_init (GObjectClass *class)
   class->notify = NULL;
 
   gobject_signals[NOTIFY] =
   class->notify = NULL;
 
   gobject_signals[NOTIFY] =
-    g_signal_new ("notify",
+    g_signal_new (g_intern_static_string ("notify"),
                  G_TYPE_FROM_CLASS (class),
                  G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE | G_SIGNAL_DETAILED | G_SIGNAL_NO_HOOKS | G_SIGNAL_ACTION,
                  G_STRUCT_OFFSET (GObjectClass, notify),
                  G_TYPE_FROM_CLASS (class),
                  G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE | G_SIGNAL_DETAILED | G_SIGNAL_NO_HOOKS | G_SIGNAL_ACTION,
                  G_STRUCT_OFFSET (GObjectClass, notify),