From: Ned Deily Date: Wed, 22 May 2013 22:16:17 +0000 (-0700) Subject: Issue #17532: Always include Options menu for IDLE on OS X. X-Git-Tag: v2.7.6rc1~378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=674f4fa2ad1394235db032f8513af0a7b3347067;p=thirdparty%2FPython%2Fcpython.git Issue #17532: Always include Options menu for IDLE on OS X. Patch by Guilherme Simões. --- diff --git a/Lib/idlelib/Bindings.py b/Lib/idlelib/Bindings.py index ec2720b0d025..fe6e812d2bff 100644 --- a/Lib/idlelib/Bindings.py +++ b/Lib/idlelib/Bindings.py @@ -98,6 +98,10 @@ if macosxSupport.runningAsOSXApp(): # menu del menudefs[-1][1][0:2] + # Remove the 'Configure' entry from the options menu, it is in the + # application menu as 'Preferences' + del menudefs[-2][1][0:2] + default_keydefs = idleConf.GetCurrentKeySet() del sys diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 38cbfcfc5592..7b9b583db9a2 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -467,7 +467,6 @@ class EditorWindow(object): ] if macosxSupport.runningAsOSXApp(): - del menu_specs[-3] menu_specs[-2] = ("windows", "_Window") diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 81af85a84044..0a77bb585365 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -844,7 +844,6 @@ class PyShell(OutputWindow): ] if macosxSupport.runningAsOSXApp(): - del menu_specs[-3] menu_specs[-2] = ("windows", "_Window") diff --git a/Misc/ACKS b/Misc/ACKS index 37ed4ce01e0b..21a1a49381af 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -941,6 +941,7 @@ Michael Simcich Ionel Simionescu Kirill Simonov Nathan Paul Simons +Guilherme Simões Ravi Sinha Janne Sinkkonen Ng Pheng Siong diff --git a/Misc/NEWS b/Misc/NEWS index 7a720309184e..9c472ddbf9f9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -28,6 +28,9 @@ IDLE - Issue #14146: Highlight source line while debugging on Windows. +- Issue #17532: Always include Options menu for IDLE on OS X. + Patch by Guilherme Simões. + Tests -----