* src/maemo/modest-platform.c:
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 2 Jul 2007 17:28:32 +0000 (17:28 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 2 Jul 2007 17:28:32 +0000 (17:28 +0000)
        * (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

index d084d7e..d974b0f 100644 (file)
@@ -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);
        }
                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) {
 #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;
                }
                        icon_name = g_strdup (*cursor);
                        break;
                }