diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c index e9e25ad..4ac0244 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -946,6 +946,8 @@ mq_web_view_save(MqWebView *web_view) gchar *dir; gchar *title; gchar *filename; + GtkWidget *type_combo_box; + GtkWidget *type_box; dialog = gtk_file_chooser_dialog_new("Save File", GTK_WINDOW(mq_tab_page_get_window(web_view->tab_page)), @@ -971,4 +973,19 @@ mq_web_view_save(MqWebView *web_view) g_free(filename); add_chooser_filters(chooser); + + type_combo_box = gtk_combo_box_text_new(); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box), + "detect", "By extension"); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box), + "html", "HTML"); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(type_combo_box), + "mhtml", "MHTML"); + gtk_combo_box_set_active(GTK_COMBO_BOX(type_combo_box), 0); + + type_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_pack_start(GTK_BOX(type_box), gtk_label_new("File type:"), + FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(type_box), type_combo_box, FALSE, FALSE, 0); + gtk_file_chooser_set_extra_widget(chooser, type_box); } |