diff options
author | Federico Mena Quintero <federico@ximian.com> | 2004-03-30 00:05:23 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2004-03-30 00:05:23 +0800 |
commit | 9fb5753f5269d9ce94a0815660dfc907c6d96cdf (patch) | |
tree | ca05877a390f51ec9dc586a05a32ffd3600bb9a8 /embed/mozilla/FilePicker.cpp | |
parent | df0bef1f04e5cc6782a80fe328805f806b579cd3 (diff) | |
download | gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.tar gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.tar.gz gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.tar.bz2 gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.tar.lz gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.tar.xz gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.tar.zst gsoc2013-epiphany-9fb5753f5269d9ce94a0815660dfc907c6d96cdf.zip |
Fixes #138263.
2004-03-29 Federico Mena Quintero <federico@ximian.com>
Fixes #138263.
* lib/ephy-file-chooser.h: Remove EPHY_RESPONSE_OPEN and
EPHY_RESPONSE_SAVE; we'll use GTK_RESPONSE_ACCEPT instead.
* lib/ephy-file-chooser.c (ephy_file_chooser_new): Use
GTK_RESPONSE_ACCEPT rather than EPHY_RESPONSE_*.
* embed/print-dialog.c (print_filechooser_response_cb): Likewise.
* src/bookmarks/ephy-bookmarks-editor.c
(import_from_file_response_cb): Likewise.
* src/prefs-dialog.c (download_path_response_cb): Likewise.
* src/window-commands.c (open_response_cb): Likewise.
* embed/mozilla/ContentHandler.cpp (PromptForSaveToFile):
Likewise.
* embed/mozilla/EphyHeaderSniffer.cpp (filechooser_response_cb):
Likewise.
* embed/mozilla/FilePicker.cpp (Init): Likewise.
(Show): Likewise.
Diffstat (limited to 'embed/mozilla/FilePicker.cpp')
-rw-r--r-- | embed/mozilla/FilePicker.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp index a456be78f..39283c56e 100644 --- a/embed/mozilla/FilePicker.cpp +++ b/embed/mozilla/FilePicker.cpp @@ -110,9 +110,9 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t gtk_dialog_add_buttons (GTK_DIALOG (mDialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, EPHY_RESPONSE_OPEN, + GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); - gtk_dialog_set_default_response (GTK_DIALOG (mDialog), EPHY_RESPONSE_OPEN); + gtk_dialog_set_default_response (GTK_DIALOG (mDialog), GTK_RESPONSE_ACCEPT); break; case nsIFilePicker::modeOpenMultiple: @@ -124,9 +124,9 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t gtk_dialog_add_buttons (GTK_DIALOG (mDialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, EPHY_RESPONSE_OPEN, + GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); - gtk_dialog_set_default_response (GTK_DIALOG (mDialog), EPHY_RESPONSE_OPEN); + gtk_dialog_set_default_response (GTK_DIALOG (mDialog), GTK_RESPONSE_ACCEPT); break; @@ -136,9 +136,9 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t gtk_dialog_add_buttons (GTK_DIALOG (mDialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_SAVE, EPHY_RESPONSE_SAVE, + GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); - gtk_dialog_set_default_response (GTK_DIALOG (mDialog), EPHY_RESPONSE_SAVE); + gtk_dialog_set_default_response (GTK_DIALOG (mDialog), GTK_RESPONSE_ACCEPT); break; default: g_assert_not_reached (); @@ -385,8 +385,7 @@ NS_IMETHODIMP GFilePicker::Show(PRInt16 *_retval) switch (response) { - case EPHY_RESPONSE_OPEN: - case EPHY_RESPONSE_SAVE: + case GTK_RESPONSE_ACCEPT: *_retval = nsIFilePicker::returnOK; break; default: |