2006-08-09 [colin] 2.4.0cvs35
[claws.git] / src / mimeview.c
index b4ea2f21a8a631833cb3dc93d5146856282f3222..788008531b7f0673c3ff30f1261fcc010e42c030 100644 (file)
@@ -1696,7 +1696,7 @@ static void mimeview_view_file(const gchar *filename, MimeInfo *partinfo,
        } else if (MIMETYPE_AUDIO == partinfo->type) {
                cmd = prefs_common.mime_audio_player;
                def_cmd = default_audio_cmdline;
-       } else if (MIMETYPE_TEXT == partinfo->type && !strcmp(partinfo->subtype, "html")) {
+       } else if (MIMETYPE_TEXT == partinfo->type && !strcasecmp(partinfo->subtype, "html")) {
                cmd = prefs_common.uri_cmd;
                def_cmd = default_html_cmdline;
        } else {
@@ -1791,6 +1791,12 @@ static void icon_selected (MimeView *mimeview, gint num, MimeInfo *partinfo)
                gtk_ctree_select(GTK_CTREE(mimeview->ctree), node);
 }              
 
+void mimeview_select_mimepart_icon(MimeView *mimeview, MimeInfo *partinfo)
+{
+       icon_list_toggle_by_mime_info(mimeview, partinfo);
+       icon_selected(mimeview, -1, partinfo);
+}
+
 #undef  KEY_PRESS_EVENT_STOP
 #define KEY_PRESS_EVENT_STOP() \
         g_signal_stop_emission_by_name(G_OBJECT(button), \