aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-utils.c
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/ephy-embed-utils.c
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/ephy-embed-utils.c')
-rw-r--r--embed/ephy-embed-utils.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 33a8935ad..e564bb084 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -44,7 +44,8 @@
void
ephy_embed_utils_save (GtkWidget *window,
const char *default_dir_pref,
- gboolean ask_dest, gboolean ask_content,
+ gboolean ask_dest,
+ gboolean with_content,
EphyEmbedPersist *persist)
{
GnomeVFSURI *uri;
@@ -57,7 +58,6 @@ ephy_embed_utils_save (GtkWidget *window,
gresult ret;
EphyEmbed *embed;
EmbedPersistFlags flags;
- gboolean content;
EphyEmbedSingle *single;
single = ephy_embed_shell_get_embed_single
@@ -132,7 +132,6 @@ ephy_embed_utils_save (GtkWidget *window,
(single, window,
_("Select the destination filename"),
dirName, fileName, modeSave, &retPath,
- ask_content ? &content : NULL,
NULL, NULL);
}
@@ -143,12 +142,8 @@ ephy_embed_utils_save (GtkWidget *window,
retDir = gnome_vfs_uri_extract_dirname (uri);
- if (ask_content && content)
- {
- flags |= EMBED_PERSIST_SAVE_CONTENT;
- ephy_embed_persist_set_flags (persist,
- flags);
- }
+ if (with_content) flags |= EMBED_PERSIST_SAVE_CONTENT;
+ ephy_embed_persist_set_flags (persist, flags);
ephy_embed_persist_set_dest (persist, retPath);