diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | data/ui/epiphany-ui.xml | 1 | ||||
-rw-r--r-- | src/ephy-window.c | 2 | ||||
-rw-r--r-- | src/popup-commands.c | 7 | ||||
-rw-r--r-- | src/popup-commands.h | 3 |
5 files changed, 22 insertions, 0 deletions
@@ -1,3 +1,12 @@ +2004-01-10 Xan Lopez <xan@gnome.org> + + * 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. + 2004-01-09 <clahey@ximian.com> * src/toolbar.c (update_location_editable): Check if embed is valid diff --git a/data/ui/epiphany-ui.xml b/data/ui/epiphany-ui.xml index a4b862072..4aba07e08 100644 --- a/data/ui/epiphany-ui.xml +++ b/data/ui/epiphany-ui.xml @@ -131,6 +131,7 @@ <menuitem name="EditCopyLP" action="EditCopy"/> <separator name="LPSep2"/> <menuitem name="DownloadLinkLP" action="DownloadLink"/> + <menuitem name="DownloadLinkAsLP" action="DownloadLinkAs"/> <menuitem name="BookmarkLinkLP" action="BookmarkLink"/> <menuitem name="CopyLinkAddressLP" action="CopyLinkAddress"/> </popup> 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); |