summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-12-10 06:56:21 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-12-10 06:56:21 +0000
commit3fa131695b6b9ab58229dc454ff0776aef1cb7cb (patch)
tree532ebcb07b55ac646821eef83529eb5152e30e8a
parent7fa28277a13731e66f2e764fc96a1f2f6048d9aa (diff)
downloadmetacity-3fa131695b6b9ab58229dc454ff0776aef1cb7cb.tar.gz
metacity-3fa131695b6b9ab58229dc454ff0776aef1cb7cb.tar.bz2
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
-rw-r--r--ChangeLog5
-rw-r--r--src/menu.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 58b4bda..023e538 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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
creation, and update to current pref.
diff --git a/src/menu.c b/src/menu.c
index aea8942..708274f 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -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);