mirror of
https://github.com/brl/mutter.git
synced 2024-12-12 06:10:17 +00:00
[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:
parent
f2c25fd4f7
commit
33ef1675f5
@ -7065,6 +7065,12 @@ parse_units (ClutterActor *self,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strcmp (end, "em") == 0)
|
||||||
|
{
|
||||||
|
retval = CLUTTER_UNITS_FROM_EM (val);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp (end, "mm") == 0)
|
if (strcmp (end, "mm") == 0)
|
||||||
{
|
{
|
||||||
retval = CLUTTER_UNITS_FROM_MM (val);
|
retval = CLUTTER_UNITS_FROM_MM (val);
|
||||||
|
Loading…
Reference in New Issue
Block a user