mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
script-parser: Also honor properties of type GType
The script parser should also handle GType properties. http://bugzilla.clutter-project.org/show_bug.cgi?id=2513
This commit is contained in:
parent
8e3d9c21c6
commit
f4fc7284eb
@ -1356,6 +1356,15 @@ clutter_script_parse_node (ClutterScript *script,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G_VALUE_TYPE (value) == G_TYPE_GTYPE &&
|
||||||
|
G_VALUE_HOLDS (&node_value, G_TYPE_STRING))
|
||||||
|
{
|
||||||
|
const gchar *str = g_value_get_string (&node_value);
|
||||||
|
GType type = clutter_script_get_type_from_name (script, str);
|
||||||
|
g_value_set_gtype (value, type);
|
||||||
|
retval = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
g_value_unset (&node_value);
|
g_value_unset (&node_value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user