aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2004-01-10 18:23:57 +0800
committerXan Lopez <xan@src.gnome.org>2004-01-10 18:23:57 +0800
commit39fc1047662acd0b69425546ecd427ce81a04733 (patch)
tree46ea1671d30b60afebcd06293965afa37208f4c6 /src
parent79d45dc8db1edbe7e1899d65bd84a904bf4298cc (diff)
downloadgsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.tar
gsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.tar.gz
gsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.tar.bz2
gsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.tar.lz
gsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.tar.xz
gsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.tar.zst
gsoc2013-epiphany-39fc1047662acd0b69425546ecd427ce81a04733.zip
Add "Download Link As" to the link context menu.
* data/ui/epiphany-ui.xml: * src/ephy-window.c: * src/popup-commands.c: (popup_cmd_download_link_as): * src/popup-commands.h: Add "Download Link As" to the link context menu.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c2
-rw-r--r--src/popup-commands.c7
-rw-r--r--src/popup-commands.h3
3 files changed, 12 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index f66d4119d..deb226d7c 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -273,6 +273,8 @@ static GtkActionEntry ephy_popups_entries [] = {
NULL, NULL, G_CALLBACK (popup_cmd_link_in_new_tab) },
{ "DownloadLink", GTK_STOCK_SAVE, N_("_Download Link"), NULL,
NULL, G_CALLBACK (popup_cmd_download_link) },
+ { "DownloadLinkAs", GTK_STOCK_SAVE, N_("_Download Link As..."), NULL,
+ NULL, G_CALLBACK (popup_cmd_download_link_as) },
{ "BookmarkLink", STOCK_ADD_BOOKMARK, N_("_Bookmark Link..."),
NULL, NULL, G_CALLBACK (popup_cmd_bookmark_link) },
{ "CopyLinkAddress", NULL, N_("_Copy Link Address"), NULL,
diff --git a/src/popup-commands.c b/src/popup-commands.c
index ac5e5ee43..f145c1d76 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -328,6 +328,13 @@ popup_cmd_download_link (GtkAction *action,
}
void
+popup_cmd_download_link_as (GtkAction *action,
+ EphyWindow *window)
+{
+ save_property_url (action, _("Download link"), window,
+ TRUE, "link");
+}
+void
popup_cmd_save_image_as (GtkAction *action,
EphyWindow *window)
{
diff --git a/src/popup-commands.h b/src/popup-commands.h
index 2d2da5f11..2a5c0929f 100644
--- a/src/popup-commands.h
+++ b/src/popup-commands.h
@@ -59,6 +59,9 @@ void popup_cmd_open_link (GtkAction *action,
void popup_cmd_download_link (GtkAction *action,
EphyWindow *window);
+void popup_cmd_download_link_as (GtkAction *action,
+ EphyWindow *window);
+
void popup_cmd_set_image_as_background (GtkAction *action,
EphyWindow *window);