aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-03-01 02:20:32 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-03-01 02:20:32 +0800
commit4461c9354db2be499323f99a2fe17fab73df3eba (patch)
tree29048ec135d96e4d309443b3591835a25eea179b /embed/mozilla/ContentHandler.cpp
parent7235264b18ffdbb7630360f65166c2bf44d4b42f (diff)
downloadgsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.tar
gsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.tar.gz
gsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.tar.bz2
gsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.tar.lz
gsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.tar.xz
gsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.tar.zst
gsoc2013-epiphany-4461c9354db2be499323f99a2fe17fab73df3eba.zip
Correct the label of the action button (Open)
2004-02-29 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/ContentHandler.cpp: Correct the label of the action button (Open)
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r--embed/mozilla/ContentHandler.cpp9
1 files changed, 6 insertions, 3 deletions
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);