summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2012-10-02 00:53:58 (GMT)
committerKevin Walzer <kw@codebykevin.com>2012-10-02 00:53:58 (GMT)
commit250369c7c545a6b35bc0d05c8ca4ee656779687b (patch)
tree816132bb723496f89f8a2df8b2e3ad79788b1c1f /macosx/tkMacOSXMenu.c
parentdb038591f9eaf386dd2de21722e22eaafba098bb (diff)
downloadtk-250369c7c545a6b35bc0d05c8ca4ee656779687b.zip
tk-250369c7c545a6b35bc0d05c8ca4ee656779687b.tar.gz
tk-250369c7c545a6b35bc0d05c8ca4ee656779687b.tar.bz2
Fix for 3572016, menus not re-enabling after modal dialog
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 979361a..ccf8626 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -236,6 +236,12 @@ static int ModifierCharWidth(Tk_Font tkfont);
return [menuItem isEnabled];
}
+// Workaround for bug 3572016; leaves menu items enabled during modal dialog.
+- (BOOL)worksWhenModal
+{
+ return YES;
+}
+
- (void) tkMenuItemInvoke: (id) sender
{
/*