[epiphany] Only offer to open files with safe mime types



commit 22ee0df38cb945775c53669bdaf5130bb3fbc7ac
Author: Olivier Tilloy <olivier tilloy net>
Date:   Fri Mar 19 18:27:13 2010 +0100

    Only offer to open files with safe mime types
    
    Changed the "Open" button to "Download" when the mime type of the file
    is not considered safe for opening.
    
    Bug #361559

 embed/ephy-embed.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index acc4e94..46ed192 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -733,6 +733,7 @@ confirm_action_from_mime (WebKitWebView *web_view,
                                                 "it could potentially damage your documents or "
                                                 "invade your privacy. You can download it instead."),
                                               mime_description, suggested_filename);
+    action_label = STOCK_DOWNLOAD;
   } else if (action == DOWNLOAD_ACTION_OPEN && helper_app) {
     dialog = gtk_message_dialog_new (GTK_WINDOW (parent_window),
                                      GTK_DIALOG_DESTROY_WITH_PARENT,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]