From 83542959869374376361ae0a05b93a9aaafe472a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 9 Jan 2009 15:02:50 +0000 Subject: [PATCH] Intern the ClutterScriptable type name Like we do for other types, use the I_() macro to intern the type name during the GType registration for ClutterScriptable. --- clutter/clutter-scriptable.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/clutter/clutter-scriptable.c b/clutter/clutter-scriptable.c index eef54bd57..3e41d7e23 100644 --- a/clutter/clutter-scriptable.c +++ b/clutter/clutter-scriptable.c @@ -56,11 +56,14 @@ clutter_scriptable_get_type (void) { static GType scriptable_type = 0; - if (!scriptable_type) - scriptable_type = - g_type_register_static_simple (G_TYPE_INTERFACE, "ClutterScriptable", - sizeof (ClutterScriptableIface), - NULL, 0, NULL, 0); + if (G_UNLIKELY (scriptable_type == 0)) + { + scriptable_type = + g_type_register_static_simple (G_TYPE_INTERFACE, + I_("ClutterScriptable"), + sizeof (ClutterScriptableIface), + NULL, 0, NULL, 0); + } return scriptable_type; }