[Xfce4-commits] <midori:master> Rename 'Download link destination' to 'Save as'
Christian Dywan
noreply at xfce.org
Mon Feb 21 19:44:03 CET 2011
Updating branch refs/heads/master
to 997db05a9e9447e296850e9cd30aed602d2dea8e (commit)
from b7f8281f77468cdf7036776761367c7ebc4bbe07 (commit)
commit 997db05a9e9447e296850e9cd30aed602d2dea8e
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Feb 21 19:42:10 2011 +0100
Rename 'Download link destination' to 'Save as'
Fixes: https://bugs.launchpad.net/midori/+bug/699989
midori/midori-view.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 4eb6318..7b5f081 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -2414,7 +2414,7 @@ midori_view_populate_popup (MidoriView* view,
_("Copy Link de_stination"), NULL,
G_CALLBACK (midori_web_view_menu_link_copy_activate_cb), widget);
midori_view_insert_menu_item (menu_shell, -1,
- _("_Save Link destination"), NULL,
+ NULL, GTK_STOCK_SAVE_AS,
G_CALLBACK (midori_web_view_menu_save_activate_cb), widget);
if (view->download_manager && *view->download_manager)
midori_view_insert_menu_item (menu_shell, -1,
@@ -2478,13 +2478,15 @@ midori_view_populate_popup (MidoriView* view,
#if WEBKIT_CHECK_VERSION (1, 1, 3)
/* hack to localize menu item */
label = gtk_bin_get_child (GTK_BIN (menuitem));
- gtk_label_set_label (GTK_LABEL (label), _("_Download Link destination"));
+ GtkStockItem stock_item;
+ if (gtk_stock_lookup (GTK_STOCK_SAVE_AS, &stock_item))
+ gtk_label_set_label (GTK_LABEL (label), stock_item.label);
#else
/* hack to disable non-functional Download File */
gtk_widget_hide (menuitem);
gtk_widget_set_no_show_all (menuitem, TRUE);
midori_view_insert_menu_item (menu_shell, 3,
- _("_Save Link destination"), NULL,
+ NULL, GTK_STOCK_SAVE_AS,
G_CALLBACK (midori_web_view_menu_save_as_activate_cb), widget);
#endif
if (view->download_manager && *view->download_manager)
More information about the Xfce4-commits
mailing list