]> granicus.if.org Git - python/commitdiff
MenuID's are signed.
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 31 Aug 2002 01:20:53 +0000 (01:20 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 31 Aug 2002 01:20:53 +0000 (01:20 +0000)
Mac/Tools/IDE/Wapplication.py

index 27613f2cb42dc7c566d274e64e3d4b39bf532d45..f78ef5e0a6cf5fb3369992435387f491cae9c19d 100644 (file)
@@ -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)