Like we do for other types, use the I_() macro to intern the
type name during the GType registration for ClutterScriptable.
{
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;
}