[script] Allow parsing units in em

When creating an actor, using "em" as a unit should result
in an implicit conversion, like for "mm" and "pt".
This commit is contained in:
Emmanuele Bassi 2009-05-07 18:46:36 +01:00
parent f2c25fd4f7
commit 33ef1675f5

View File

@ -7065,6 +7065,12 @@ parse_units (ClutterActor *self,
goto out;
}
if (strcmp (end, "em") == 0)
{
retval = CLUTTER_UNITS_FROM_EM (val);
goto out;
}
if (strcmp (end, "mm") == 0)
{
retval = CLUTTER_UNITS_FROM_MM (val);