color: Measure the string just once when parsing
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 7 Oct 2009 12:00:57 +0000 (13:00 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 7 Oct 2009 12:00:57 +0000 (13:00 +0100)
commit4d481e03f3534cb703a276cd430056d3ec27fcb0
treeabdd3b3e87d685d96d95ae85f5b9c5c131d1611a
parentc7d50083ec1d1209dd8653bc30ba4f3bec09e976
color: Measure the string just once when parsing

Instead of measuring the color hexadecimal string for each case, just
measure it once and then use a switch() to go to the right case.
clutter/clutter-color.c