aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-03-30 00:14:12 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2004-03-30 00:14:12 +0800
commit87b1f025f2eaacaf1eaaa259018adddb4a9298ab (patch)
tree6920d89f239dfdcce2581a4f7f1920b7ce503617 /lib
parent6c4542fb9b2e2c263765db7da0c1c8e866a8e327 (diff)
downloadgsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.tar
gsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.tar.gz
gsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.tar.bz2
gsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.tar.lz
gsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.tar.xz
gsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.tar.zst
gsoc2013-epiphany-87b1f025f2eaacaf1eaaa259018adddb4a9298ab.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 'lib')
-rw-r--r--lib/ephy-file-chooser.c8
-rw-r--r--lib/ephy-file-chooser.h6
2 files changed, 4 insertions, 10 deletions
diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c
index c3baec5ec..a7f610336 100644
--- a/lib/ephy-file-chooser.c
+++ b/lib/ephy-file-chooser.c
@@ -238,19 +238,19 @@ ephy_file_chooser_new (const char *title,
{
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
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 (dialog),
- EPHY_RESPONSE_OPEN);
+ GTK_RESPONSE_ACCEPT);
}
else if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
{
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
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 (dialog),
- EPHY_RESPONSE_SAVE);
+ GTK_RESPONSE_ACCEPT);
}
if (parent != NULL)
diff --git a/lib/ephy-file-chooser.h b/lib/ephy-file-chooser.h
index 1ca3426f4..d3d729ca6 100644
--- a/lib/ephy-file-chooser.h
+++ b/lib/ephy-file-chooser.h
@@ -37,12 +37,6 @@ G_BEGIN_DECLS
typedef struct EphyFileChooserPrivate EphyFileChooserPrivate;
-enum
-{
- EPHY_RESPONSE_OPEN = 2,
- EPHY_RESPONSE_SAVE = 3
-};
-
typedef struct
{
GtkFileChooserDialog parent;