Use distinct labels for Refresh actions in shortcut editor
This commit is contained in:
parent
4557f086ef
commit
912637025c
2 changed files with 8 additions and 2 deletions
|
@ -100,10 +100,16 @@ shortcuts_accel_cleared_cb (GtkCellRenderer* renderer,
|
||||||
static gchar*
|
static gchar*
|
||||||
shortcuts_label_for_action (GtkAction* action)
|
shortcuts_label_for_action (GtkAction* action)
|
||||||
{
|
{
|
||||||
|
const gchar* name = gtk_action_get_name (action);
|
||||||
gchar* label;
|
gchar* label;
|
||||||
gchar* stripped;
|
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);
|
stripped = katze_strip_mnemonics (label);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -4892,7 +4892,7 @@ static const GtkActionEntry entries[] =
|
||||||
NULL, "<Ctrl>r",
|
NULL, "<Ctrl>r",
|
||||||
N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) },
|
N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) },
|
||||||
{ "ReloadUncached", GTK_STOCK_REFRESH,
|
{ "ReloadUncached", GTK_STOCK_REFRESH,
|
||||||
NULL, "<Ctrl><Shift>r",
|
N_("Reload page without caching"), "<Ctrl><Shift>r",
|
||||||
N_("Reload page without caching"), G_CALLBACK (_action_reload_stop_activate) },
|
N_("Reload page without caching"), G_CALLBACK (_action_reload_stop_activate) },
|
||||||
{ "Stop", GTK_STOCK_STOP,
|
{ "Stop", GTK_STOCK_STOP,
|
||||||
NULL, "Escape",
|
NULL, "Escape",
|
||||||
|
|
Loading…
Reference in a new issue