aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-popup-control.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 /embed/ephy-embed-popup-control.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 'embed/ephy-embed-popup-control.c')
-rw-r--r--embed/ephy-embed-popup-control.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/embed/ephy-embed-popup-control.c b/embed/ephy-embed-popup-control.c
index 2f8b20b8a..05c6cc91b 100644
--- a/embed/ephy-embed-popup-control.c
+++ b/embed/ephy-embed-popup-control.c
@@ -26,6 +26,7 @@
#include <gtk/gtkmain.h>
#include <string.h>
#include <bonobo/bonobo-ui-component.h>
+#include <bonobo/bonobo-i18n.h>
#include <gtk/gtkclipboard.h>
#include <libgnome/gnome-exec.h>
@@ -481,6 +482,7 @@ embed_popup_copy_link_location_cmd (BonoboUIComponent *uic,
static void
save_property_url (EphyEmbedPopupControl *popup,
+ const char *title,
gboolean ask_dest,
gboolean show_progress,
const char *property)
@@ -509,11 +511,9 @@ save_property_url (EphyEmbedPopupControl *popup,
EMBED_PERSIST_SHOW_PROGRESS);
}
- ephy_embed_utils_save (window,
+ ephy_embed_utils_save (window, title,
CONF_STATE_DOWNLOADING_DIR,
- ask_dest,
- FALSE,
- persist);
+ ask_dest, FALSE, persist);
}
/* commands */
@@ -540,6 +540,7 @@ embed_popup_download_link_cmd (BonoboUIComponent *uic,
const char* verbname)
{
save_property_url (popup,
+ _("Download Link"),
eel_gconf_get_boolean
(CONF_ASK_DOWNLOAD_DEST),
TRUE, "link");
@@ -550,7 +551,7 @@ embed_popup_save_image_as_cmd (BonoboUIComponent *uic,
EphyEmbedPopupControl *popup,
const char* verbname)
{
- save_property_url (popup, TRUE, FALSE, "image");
+ save_property_url (popup, _("Save Image As"), TRUE, FALSE, "image");
}
#define CONF_DESKTOP_BG_PICTURE "/desktop/gnome/background/picture_filename"
@@ -629,6 +630,7 @@ embed_popup_copy_image_location_cmd (BonoboUIComponent *uic,
static void
save_url (EphyEmbedPopupControl *popup,
+ const char *title,
gboolean ask_dest,
gboolean show_progress,
const char *url)
@@ -649,11 +651,9 @@ save_url (EphyEmbedPopupControl *popup,
EMBED_PERSIST_SHOW_PROGRESS);
}
- ephy_embed_utils_save (window,
+ ephy_embed_utils_save (window, title,
CONF_STATE_DOWNLOADING_DIR,
- ask_dest,
- FALSE,
- persist);
+ ask_dest, FALSE, persist);
}
static void
@@ -665,7 +665,7 @@ embed_popup_save_page_as_cmd (BonoboUIComponent *uic,
ephy_embed_get_location (popup->priv->embed,
FALSE, &location);
- save_url (popup, TRUE, FALSE, location);
+ save_url (popup, _("Save Page As"), TRUE, FALSE, location);
g_free (location);
}
@@ -674,7 +674,8 @@ embed_popup_save_background_as_cmd (BonoboUIComponent *uic,
EphyEmbedPopupControl *popup,
const char* verbname)
{
- save_property_url (popup, TRUE, FALSE, "background_image");
+ save_property_url (popup, _("Save Background As"),
+ TRUE, FALSE, "background_image");
}
static void