don't do mnemonics for workspaces above 9

2001-12-10  Havoc Pennington  <hp@pobox.com>

	* src/menu.c (meta_window_menu_new): don't do mnemonics for
	workspaces above 9
This commit is contained in:
Havoc Pennington 2001-12-10 06:56:21 +00:00 committed by Havoc Pennington
parent 7fa28277a1
commit 3fa131695b
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2001-12-10 Havoc Pennington <hp@pobox.com>
* src/menu.c (meta_window_menu_new): don't do mnemonics for
workspaces above 9
2001-12-10 Havoc Pennington <hp@pobox.com>
* src/screen.c (meta_screen_new): oops, remove extra workspace

View File

@ -258,12 +258,12 @@ meta_window_menu_new (MetaFrames *frames,
MenuData *md;
if (ops & META_MENU_OP_UNSTICK)
label = g_strdup_printf (_("Only on workspace _%d"),
i + 1);
label = g_strdup_printf (_("Only on workspace %s%d"),
i < 9 ? "_" : "", i + 1);
else
label = g_strdup_printf (_("Move to workspace _%d"),
i + 1);
label = g_strdup_printf (_("Move to workspace %s%d"),
i < 9 ? "_" : "", i + 1);
mi = gtk_menu_item_new_with_mnemonic (label);
g_free (label);