From 4461c9354db2be499323f99a2fe17fab73df3eba Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 29 Feb 2004 18:20:32 +0000 Subject: Correct the label of the action button (Open) 2004-02-29 Marco Pesenti Gritti * embed/mozilla/ContentHandler.cpp: Correct the label of the action button (Open) --- ChangeLog | 6 ++++++ embed/mozilla/ContentHandler.cpp | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5bf6a1e71..8c1b18fd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-29 Marco Pesenti Gritti + + * embed/mozilla/ContentHandler.cpp: + + Correct the label of the action button (Open) + 2004-02-29 Christian Persch * 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 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); -- cgit v1.2.3