summaryrefslogtreecommitdiffstats
path: root/macosx
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)
commit25f42ec75acc17b5de42daa447b54684e1eedc6d (patch)
tree816132bb723496f89f8a2df8b2e3ad79788b1c1f /macosx
parentba783367aeb76fb86aec2e5fd8dd4c2012277d51 (diff)
downloadtk-25f42ec75acc17b5de42daa447b54684e1eedc6d.zip
tk-25f42ec75acc17b5de42daa447b54684e1eedc6d.tar.gz
tk-25f42ec75acc17b5de42daa447b54684e1eedc6d.tar.bz2
Fix for 3572016, menus not re-enabling after modal dialog
Diffstat (limited to 'macosx')
-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
{
/*