summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2012-10-02 00:49:25 (GMT)
committerKevin Walzer <kw@codebykevin.com>2012-10-02 00:49:25 (GMT)
commitd372dabf08248cddd5705a24c327decd6d5ffefb (patch)
tree549927193340a734dce34da8094620d4f1d5611a /macosx/tkMacOSXMenu.c
parentc994b1b0118df67b399a41e1c150cf7ce78283a6 (diff)
downloadtk-d372dabf08248cddd5705a24c327decd6d5ffefb.zip
tk-d372dabf08248cddd5705a24c327decd6d5ffefb.tar.gz
tk-d372dabf08248cddd5705a24c327decd6d5ffefb.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 8054c57..83ad47a 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
{
/*