From: Christian Dywan Date: Sun, 20 Feb 2011 03:13:30 +0000 (+0100) Subject: Use distinct labels for Refresh actions in shortcut editor X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=912637025cbf19455927eb3d27629e7fbca5dd2c;p=midori Use distinct labels for Refresh actions in shortcut editor --- diff --git a/extensions/shortcuts.c b/extensions/shortcuts.c index 12671fa3..a9cd1657 100644 --- a/extensions/shortcuts.c +++ b/extensions/shortcuts.c @@ -100,10 +100,16 @@ shortcuts_accel_cleared_cb (GtkCellRenderer* renderer, static gchar* shortcuts_label_for_action (GtkAction* action) { + const gchar* name = gtk_action_get_name (action); gchar* label; gchar* stripped; - if ((label = katze_object_get_string (action, "label"))) + if (g_str_equal (name, "ReloadStop")) + { + label = NULL; + stripped = g_strdup (_("Reload page or stop loading")); + } + else if ((label = katze_object_get_string (action, "label"))) stripped = katze_strip_mnemonics (label); else { diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 0974f9c9..d75faa07 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -4892,7 +4892,7 @@ static const GtkActionEntry entries[] = NULL, "r", N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) }, { "ReloadUncached", GTK_STOCK_REFRESH, - NULL, "r", + N_("Reload page without caching"), "r", N_("Reload page without caching"), G_CALLBACK (_action_reload_stop_activate) }, { "Stop", GTK_STOCK_STOP, NULL, "Escape",