diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-28 22:23:45 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-28 22:23:45 (EDT) |
commit | 748e41095ff5d13789e33395de2f14a98cbc0feb (patch) | |
tree | 49167d34e92c9cb81794abb266b3ea3135ab52f1 | |
parent | 152cbaf340412b1753c6ddf8345a35c2982520db (diff) | |
download | marquee-748e41095ff5d13789e33395de2f14a98cbc0feb.zip marquee-748e41095ff5d13789e33395de2f14a98cbc0feb.tar.gz marquee-748e41095ff5d13789e33395de2f14a98cbc0feb.tar.bz2 |
mq_web_view_save(): Add file type combo box
-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); } |