From 936bc8a46cf54d7c5ceae37ddf6449c684e2f4b3 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 2 Jul 2007 17:28:32 +0000 Subject: [PATCH] * src/maemo/modest-platform.c: * (modest_platform_get_icon_name): now gnome-mime-message and gnome-mime-message-rfc822 obtain the modest app icon (fixes NB#58262). pmo-trunk-r2539 --- src/maemo/modest-platform.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index d084d7e..d974b0f 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -214,13 +214,18 @@ modest_platform_get_file_icon_name (const gchar* name, const gchar* mime_type, mime_str = g_string_new (mime_type); g_string_ascii_down (mime_str); } + #ifdef MODEST_HAVE_OSSO_MIME icons = osso_mime_get_icon_names (mime_str->str, NULL); #else icons = hildon_mime_get_icon_names (mime_str->str, NULL); #endif /*MODEST_HAVE_OSSO_MIME*/ for (cursor = icons; cursor; ++cursor) { - if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default(), *cursor)) { + if (!g_ascii_strcasecmp (*cursor, "gnome-mime-message") || + !g_ascii_strcasecmp (*cursor, "gnome-mime-message-rfc822")) { + icon_name = g_strdup ("qgn_list_messagin"); + break; + } else if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default(), *cursor)) { icon_name = g_strdup (*cursor); break; } -- 1.7.9.5