diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-09 04:11:17 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-09 04:11:17 +0800 |
commit | b3fed7cc16e2f03970776e0f874e94c112f4b240 (patch) | |
tree | b54e3d04e84efa3b1df7b32f42b879c3e03d7609 /embed/mozilla/ContentHandler.cpp | |
parent | 9e4d594ee6ccc51bf5dca17b8f790d7fa1a917c2 (diff) | |
download | gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.tar gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.tar.gz gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.tar.bz2 gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.tar.lz gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.tar.xz gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.tar.zst gsoc2013-epiphany-b3fed7cc16e2f03970776e0f874e94c112f4b240.zip |
Add convenience functions for creating a filter with a bunch of mime types
2004-05-08 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-file-chooser.c: (ephy_file_chooser_add_pattern_filter),
(ephy_file_chooser_add_mime_filter), (ephy_file_chooser_new):
* lib/ephy-file-chooser.h:
Add convenience functions for creating a filter with a bunch of mime
types or patterns and add it to a file chooser. Those should really
be in gtk+; see bug #142142.
* embed/mozilla/ContentHandler.cpp:
* embed/mozilla/EphyHeaderSniffer.cpp:
* embed/mozilla/FilePicker.cpp:
* embed/print-dialog.c: (ephy_print_dialog_browse_button_cb):
* src/bookmarks/ephy-bookmarks-editor.c:
(import_dialog_response_cb):
* src/prefs-dialog.c: (prefs_download_path_button_clicked_cb):
* src/window-commands.c: (window_cmd_file_open):
Add some filters to the file chooser dialogues.
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r-- | embed/mozilla/ContentHandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index 8e46348fb..8a6a6a6d3 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -140,7 +140,8 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile( dialog = ephy_file_chooser_new (_("Save"), parentWindow, GTK_FILE_CHOOSER_ACTION_SAVE, - CONF_STATE_SAVE_DIR); + CONF_STATE_SAVE_DIR, + EPHY_FILE_FILTER_ALL); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), NS_ConvertUTF16toUTF8 (aDefaultFile).get()); response = gtk_dialog_run (GTK_DIALOG (dialog)); |