Added check for pango_color_parse
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 31 Mar 2009 11:57:32 +0000 (11:57 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 31 Mar 2009 11:57:32 +0000 (11:57 +0000)
pmo-trunk-r8494

src/widgets/modest-compact-mail-header-view.c

index 2f2b859..20f1d80 100644 (file)
@@ -667,7 +667,12 @@ update_style (ModestCompactMailHeaderView *self)
                color.green = style_color.green;
                color.blue = style_color.blue;
        } else {
-               pango_color_parse (&color, "grey");
+               if (!pango_color_parse (&color, "grey")) {
+                       g_warning ("Failed to parse color grey");
+                       color.red = 0xc0c0;
+                       color.green = 0xc0c0;
+                       color.blue = 0xc0c0;
+               }
        }
 
        /* style of from:/to: label */