diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/ContentHandler.cpp | 9 |
2 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2004-02-29 Marco Pesenti Gritti <marco@gnome.org> + + * embed/mozilla/ContentHandler.cpp: + + Correct the label of the action button (Open) + 2004-02-29 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-history.c: (remove_obsolete_pages): diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index 88f7b5bad..4381a9f47 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -253,19 +253,22 @@ NS_METHOD GContentHandler::MIMEConfirmAction (PRBool autoDownload) { GtkWidget *dialog; GtkWidget *hbox, *vbox, *label, *image; + const char *action_label; char *text; int response; nsCOMPtr<nsIDOMWindow> parentDOMWindow = do_GetInterface (mContext); GtkWindow *parentWindow = GTK_WINDOW (MozillaFindGtkParent(parentDOMWindow)); + action_label = (mAction == CONTENT_ACTION_OPEN) || + (mAction == CONTENT_ACTION_OPEN_TMP) ? + _("_Open") : _("_Download"); + dialog = gtk_dialog_new_with_buttons ("", parentWindow, GTK_DIALOG_NO_SEPARATOR, _("_Save As..."), CONTENT_ACTION_SAVEAS, GTK_STOCK_CANCEL, CONTENT_ACTION_NONE, - mAction == CONTENT_ACTION_OPEN ? - _("_Open") : _("_Download"), mAction, - NULL); + action_label, mAction, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), (guint)mAction); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); |