From b3fed7cc16e2f03970776e0f874e94c112f4b240 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 8 May 2004 20:11:17 +0000 Subject: Add convenience functions for creating a filter with a bunch of mime types 2004-05-08 Christian Persch * 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. --- src/window-commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/window-commands.c') diff --git a/src/window-commands.c b/src/window-commands.c index af9d26ef2..4c4d72372 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -396,7 +396,8 @@ window_cmd_file_open (GtkAction *action, dialog = ephy_file_chooser_new (_("Open"), GTK_WIDGET (window), GTK_FILE_CHOOSER_ACTION_OPEN, - CONF_STATE_OPEN_DIR); + CONF_STATE_OPEN_DIR, + EPHY_FILE_FILTER_ALL_SUPPORTED); g_signal_connect (dialog, "response", G_CALLBACK (open_response_cb), window); -- cgit v1.2.3