From 33ef1675f5d5d750833a5d2eb9373afe44adb0c5 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 7 May 2009 18:46:36 +0100 Subject: [PATCH] [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". --- clutter/clutter-actor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 9d26463be..39973c5cf 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -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);