aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.cpp
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-24 11:51:26 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-04-24 11:51:26 +0800
commit5868173118fc790b7371a4bac8511358db7438bd (patch)
tree091de4f174f044812ce04913c8852c8673fd26a2 /embed/mozilla/mozilla-embed-single.cpp
parent8c83ceb4776c927353d7a235290c1fc2f9f34b1f (diff)
downloadgsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.tar
gsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.tar.gz
gsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.tar.bz2
gsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.tar.lz
gsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.tar.xz
gsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.tar.zst
gsoc2013-epiphany-5868173118fc790b7371a4bac8511358db7438bd.zip
Always save a page's content if there i content to be saved. Remove the
2003-04-23 David Bordoley <bordoley@msu.edu> * embed/ephy-embed-single.c: (ephy_embed_single_show_file_picker): * embed/ephy-embed-single.h: * embed/ephy-embed-utils.c: (ephy_embed_utils_save): * embed/ephy-embed-utils.h: * embed/mozilla/FilePicker.cpp: (GFilePicker::GFilePicker), (GFilePicker::Show), (GFilePicker::HandleFilePickerR): * embed/mozilla/FilePicker.h: * embed/mozilla/mozilla-embed-persist.cpp: (impl_save): * embed/mozilla/mozilla-embed-single.cpp: (impl_show_file_picker): * src/window-commands.c: (window_cmd_file_open): Always save a page's content if there i content to be saved. Remove the checkbox from the save as dialog. Patch from Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 20ccdfdca..355e33583 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -108,7 +108,6 @@ impl_show_file_picker (EphyEmbedSingle *shell,
const char *file,
FilePickerMode mode,
char **ret_fullpath,
- gboolean *ret_save_content,
FileFormat *file_formats,
int *ret_file_format);
@@ -887,20 +886,12 @@ impl_show_file_picker (EphyEmbedSingle *shell,
const char *file,
FilePickerMode mode,
char **ret_fullpath,
- gboolean *ret_save_content,
FileFormat *file_formats,
int *ret_file_format)
{
- PRBool showContentCheck;
- gchar *expanded_directory;
+ gchar *expanded_directory;
- if (ret_save_content == NULL)
- showContentCheck = PR_FALSE;
- else
- showContentCheck = PR_TRUE;
-
- GFilePicker *filePicker = new GFilePicker (showContentCheck,
- file_formats);
+ GFilePicker *filePicker = new GFilePicker (file_formats);
/* FIXME sane path: expand tilde ... */
expanded_directory = g_strdup (directory);
@@ -926,13 +917,6 @@ impl_show_file_picker (EphyEmbedSingle *shell,
PRInt16 retval;
filePicker->Show (&retval);
- if (ret_save_content != NULL)
- {
- if (retval == GFilePicker::returnOKSaveContent)
- *ret_save_content = TRUE;
- else
- *ret_save_content = FALSE;
- }
if (ret_file_format != NULL)
{
*ret_file_format = filePicker->mSelectedFileFormat;