[gedit/gnome-2-28] Escape mnemonics in external tools menu items
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit/gnome-2-28] Escape mnemonics in external tools menu items
- Date: Sat, 7 Nov 2009 21:24:40 +0000 (UTC)
commit 5b117cf5362ac8ee5d970ce9db662137d30a0062
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sat Nov 7 22:21:04 2009 +0100
Escape mnemonics in external tools menu items
plugins/externaltools/tools/__init__.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/externaltools/tools/__init__.py b/plugins/externaltools/tools/__init__.py
index 5c7f00f..dc461b4 100644
--- a/plugins/externaltools/tools/__init__.py
+++ b/plugins/externaltools/tools/__init__.py
@@ -75,7 +75,7 @@ class ToolMenu(object):
for item in directory.subdirs:
action_name = 'ExternalToolDirectory%X' % id(item)
- action = gtk.Action(action_name, item.name, None, None)
+ action = gtk.Action(action_name, item.name.replace('_', '__'), None, None)
self._action_group.add_action(action)
manager.add_ui(self._merge_id, path,
@@ -86,7 +86,7 @@ class ToolMenu(object):
for item in directory.tools:
action_name = 'ExternalToolTool%X' % id(item)
- action = gtk.Action(action_name, item.name, item.comment, None)
+ action = gtk.Action(action_name, item.name.replace('_', '__'), item.comment, None)
handler = action.connect("activate", capture_menu_action, self._window, item)
action.set_data(self.ACTION_ITEM_DATA_KEY, item)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]