projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added check for pango_color_parse
[modest]
/
src
/
widgets
/
modest-compact-mail-header-view.c
diff --git
a/src/widgets/modest-compact-mail-header-view.c
b/src/widgets/modest-compact-mail-header-view.c
index
2f2b859
..
20f1d80
100644
(file)
--- 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 {
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 */
}
/* style of from:/to: label */