From: Jose Dapena Paz Date: Tue, 31 Mar 2009 11:57:32 +0000 (+0000) Subject: Added check for pango_color_parse X-Git-Tag: git_migration_finished~167 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=eda6aae0985bcef44db4d8c8fef1510a090e9875 Added check for pango_color_parse pmo-trunk-r8494 --- diff --git a/src/widgets/modest-compact-mail-header-view.c b/src/widgets/modest-compact-mail-header-view.c index 2f2b859..20f1d80 100644 --- a/src/widgets/modest-compact-mail-header-view.c +++ b/src/widgets/modest-compact-mail-header-view.c @@ -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 */