From dee90ae4b3311e04fa8078184e23b0c114d595da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Wed, 16 Dec 2009 09:30:24 +0100 Subject: [PATCH] Fixed a crash when composing a msg from an external program Fixes NB#150923 --- src/modest-ui-actions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index e541ebb..de64ab1 100644 --- 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; - 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 = g_strdup ("#999999"); + gray_color_markup = g_strdup ("#babababababa"); color_begin = g_strdup_printf ("", gray_color_markup); color_end = ""; -- 1.7.9.5