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.
This commit is contained in:
parent
28a3cbf38e
commit
8354295986
@ -56,11 +56,14 @@ clutter_scriptable_get_type (void)
|
|||||||
{
|
{
|
||||||
static GType scriptable_type = 0;
|
static GType scriptable_type = 0;
|
||||||
|
|
||||||
if (!scriptable_type)
|
if (G_UNLIKELY (scriptable_type == 0))
|
||||||
scriptable_type =
|
{
|
||||||
g_type_register_static_simple (G_TYPE_INTERFACE, "ClutterScriptable",
|
scriptable_type =
|
||||||
sizeof (ClutterScriptableIface),
|
g_type_register_static_simple (G_TYPE_INTERFACE,
|
||||||
NULL, 0, NULL, 0);
|
I_("ClutterScriptable"),
|
||||||
|
sizeof (ClutterScriptableIface),
|
||||||
|
NULL, 0, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
return scriptable_type;
|
return scriptable_type;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user