From: Sergio Villar SenĂ­n Date: Wed, 16 Dec 2009 08:30:24 +0000 (+0100) Subject: Fixed a crash when composing a msg from an external program X-Git-Tag: 3.2.6~6 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=dee90ae4b3311e04fa8078184e23b0c114d595da Fixed a crash when composing a msg from an external program Fixes NB#150923 --- 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 = "";