projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2588a4
)
Fixed a crash when composing a msg from an external program
author
Sergio Villar Senín
<svillar@igalia.com>
Wed, 16 Dec 2009 08:30:24 +0000
(09:30 +0100)
committer
Sergio Villar Senín
<svillar@igalia.com>
Wed, 16 Dec 2009 08:54:30 +0000
(09:54 +0100)
Fixes NB#150923
src/modest-ui-actions.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-actions.c
b/src/modest-ui-actions.c
index
e541ebb
..
de64ab1
100644
(file)
--- a/
src/modest-ui-actions.c
+++ b/
src/modest-ui-actions.c
@@
-907,10
+907,11
@@
modest_ui_actions_compose_msg(ModestWindow *win,
gchar *gray_color_markup = NULL, *color_begin = NULL, *color_end = NULL;
GdkColor color;
gchar *gray_color_markup = NULL, *color_begin = NULL, *color_end = NULL;
GdkColor color;
- if (gtk_style_lookup_color (GTK_WIDGET (win)->style, "SecondaryTextColor", &color))
+ if (win && gtk_style_lookup_color (gtk_widget_get_style ((GtkWidget *) win),
+ "SecondaryTextColor", &color))
gray_color_markup = modest_text_utils_get_color_string (&color);
if (!gray_color_markup)
gray_color_markup = modest_text_utils_get_color_string (&color);
if (!gray_color_markup)
- gray_color_markup = g_strdup ("#999999");
+ gray_color_markup = g_strdup ("#babababababa");
color_begin = g_strdup_printf ("<font color=\"%s\">", gray_color_markup);
color_end = "</font>";
color_begin = g_strdup_printf ("<font color=\"%s\">", gray_color_markup);
color_end = "</font>";