diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-28 23:41:19 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-28 23:41:19 (EDT) |
commit | 760ae1c598f31d90db2374fdebdedd6609fecdb9 (patch) | |
tree | ab8e5c8eabe305d9f84cd087f93876df06a13ac2 | |
parent | 5116b0cde3a0f4e956d0e7861cf39ab45047a9f4 (diff) | |
download | marquee-760ae1c598f31d90db2374fdebdedd6609fecdb9.zip marquee-760ae1c598f31d90db2374fdebdedd6609fecdb9.tar.gz marquee-760ae1c598f31d90db2374fdebdedd6609fecdb9.tar.bz2 |
MqWebView: Detect save type and save MHTML files
-rw-r--r-- | src/web-view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web-view.c b/src/web-view.c index 75c8695..320491f 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -1004,7 +1004,11 @@ save_response_cb(GtkWidget *dialog, gint response_id, MqWebView *web_view) active_id = gtk_combo_box_get_active_id( web_view->save_type_combo_box); if (g_strcmp0(active_id, "detect") == 0) { - /* TODO */ + if (extension_is_html(extension)) { + /* TODO */ + } else if (extension_is_mhtml(extension)) { + save_mhtml(web_view, file); + } } else if (g_strcmp0(active_id, "html") == 0) { /* TODO */ } else if (g_strcmp0(active_id, "mhtml") == 0) { |