Intern the ClutterScriptable type name
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 9 Jan 2009 15:02:50 +0000 (15:02 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 26 Feb 2009 14:57:58 +0000 (14:57 +0000)
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

index eef54bd..3e41d7e 100644 (file)
@@ -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;
 }