From f7a681d65d3ffa58d9a69a724f6bed08221c1766 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 31 Aug 2005 19:42:51 +0000 Subject: [PATCH] Intern the signal name. 2005-08-31 Matthias Clasen * gobject.c (g_object_do_class_init): Intern the signal name. --- gobject/ChangeLog | 5 +++++ gobject/gobject.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 923b88d4..58b51908 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,5 +1,10 @@ 2005-08-31 Matthias Clasen + * 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 diff --git a/gobject/gobject.c b/gobject/gobject.c index 0e3f2cd4..de409a87 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -259,7 +259,7 @@ g_object_do_class_init (GObjectClass *class) 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), -- 2.34.1