Change the clutter_color_from_string() format

The format should be "%02x%02x%02x%02x" because we use guint8 for each
component, and not guint16. The string before was completely broken.
This commit is contained in:
Emmanuele Bassi 2007-10-22 15:46:56 +00:00
parent 28684c6702
commit 509799fa0c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-10-22 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-color.c (clutter_color_to_string): Change
the print format to "%02x%02x%02x%02x" because we use guint8
for each component, not guint16.
2007-10-19 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-entry.c (clutter_entry_paint): Fixed off by

View File

@ -541,7 +541,7 @@ clutter_color_to_string (const ClutterColor *color)
{
g_return_val_if_fail (color != NULL, NULL);
return g_strdup_printf ("#%04x%04x%04x%04x",
return g_strdup_printf ("#%02x%02x%02x%02x",
color->red,
color->green,
color->blue,