summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-31 01:20:53 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-31 01:20:53 (GMT)
commitf94cadf456e676143bc06f8918d0f50f1b52ab17 (patch)
tree902bb13817723b2bed4981654d07a45f6afd0943 /Mac/Tools
parentfe9acdea8af57a7810b02c667269b27c3d5e4348 (diff)
downloadcpython-f94cadf456e676143bc06f8918d0f50f1b52ab17.zip
cpython-f94cadf456e676143bc06f8918d0f50f1b52ab17.tar.gz
cpython-f94cadf456e676143bc06f8918d0f50f1b52ab17.tar.bz2
MenuID's are signed.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/Wapplication.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py
index 27613f2..f78ef5e 100644
--- a/Mac/Tools/IDE/Wapplication.py
+++ b/Mac/Tools/IDE/Wapplication.py
@@ -190,6 +190,8 @@ class Application(FrameWork.Application):
self.checkmenus(None)
result = MenuToolbox.MenuSelect(where)
id = (result>>16) & 0xffff # Hi word
+ if id >= 0x8000:
+ id = -0x10000 + id
item = result & 0xffff # Lo word
self.do_rawmenu(id, item, window, event)