aboutsummaryrefslogtreecommitdiffstats
path: root/src/popup-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-07-14 18:23:22 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-07-14 18:23:22 +0800
commit7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225 (patch)
treef869c9b1fa2b232f67b2aab5c2e37db6bfdad9c3 /src/popup-commands.c
parentaaf367e6ca143eb22deeee902cbb9955de68305b (diff)
downloadgsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.tar
gsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.tar.gz
gsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.tar.bz2
gsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.tar.lz
gsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.tar.xz
gsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.tar.zst
gsoc2013-epiphany-7fd10d1e4ad4a3cf1ffe93cbbdc4f519bf1a5225.zip
Update
2003-07-14 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/eggtreemultidnd.c: (egg_tree_multi_drag_button_press_event): Update * embed/ephy-embed-popup-control.c: (save_property_url), (embed_popup_download_link_cmd), (embed_popup_save_image_as_cmd), (save_url), (embed_popup_save_page_as_cmd), (embed_popup_save_background_as_cmd): * src/popup-commands.c: (save_property_url), (popup_cmd_download_link), (popup_cmd_save_image_as), (popup_cmd_save_background_as): * src/window-commands.c: (window_cmd_file_open), (window_cmd_file_save_as): Higgy titles for file pickers. * embed/ephy-embed-utils.c: (ephy_embed_utils_save): * embed/ephy-embed-utils.h: Allow to pass a title to _save. Show an error message when saving doesnt succeed.
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r--src/popup-commands.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 4d37e4e23..18dd5585c 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -26,6 +26,7 @@
#include "ephy-file-helpers.h"
#include <string.h>
+#include <bonobo/bonobo-i18n.h>
static EphyEmbedEvent *
get_event_info (EphyWindow *window)
@@ -249,6 +250,7 @@ popup_cmd_copy_link_address (EggAction *action,
static void
save_property_url (EggAction *action,
+ const char *title,
EphyWindow *window,
gboolean ask_dest,
gboolean show_progress,
@@ -280,11 +282,9 @@ save_property_url (EggAction *action,
EMBED_PERSIST_SHOW_PROGRESS);
}
- ephy_embed_utils_save (GTK_WIDGET (window),
+ ephy_embed_utils_save (GTK_WIDGET (window), title,
CONF_STATE_DOWNLOADING_DIR,
- ask_dest,
- FALSE,
- persist);
+ ask_dest, FALSE, persist);
g_object_unref (G_OBJECT(persist));
}
@@ -312,7 +312,7 @@ void
popup_cmd_download_link (EggAction *action,
EphyWindow *window)
{
- save_property_url (action, window,
+ save_property_url (action, _("Download link"), window,
eel_gconf_get_boolean
(CONF_ASK_DOWNLOAD_DEST),
TRUE, "link");
@@ -322,7 +322,8 @@ void
popup_cmd_save_image_as (EggAction *action,
EphyWindow *window)
{
- save_property_url (action, window, TRUE, FALSE, "image");
+ save_property_url (action, _("Save Image As"),
+ window, TRUE, FALSE, "image");
}
#define CONF_DESKTOP_BG_PICTURE "/desktop/gnome/background/picture_filename"
@@ -409,7 +410,8 @@ void
popup_cmd_save_background_as (EggAction *action,
EphyWindow *window)
{
- save_property_url (action, window, TRUE, FALSE, "background_image");
+ save_property_url (action, _("Save Background As"),
+ window, TRUE, FALSE, "background_image");
}
void