summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorwordtech <wordtech>2011-01-06 08:05:05 (GMT)
committerwordtech <wordtech>2011-01-06 08:05:05 (GMT)
commit42a81371d3c685306021a717dd79d0f0faa1e199 (patch)
treec68857dc5d281cae576dca514a840a29d3e2d9f1 /macosx
parent0073223922e3f2ce1c15c501de3c84196b5972da (diff)
downloadtk-42a81371d3c685306021a717dd79d0f0faa1e199.zip
tk-42a81371d3c685306021a717dd79d0f0faa1e199.tar.gz
tk-42a81371d3c685306021a717dd79d0f0faa1e199.tar.bz2
Fix for radiobuttons and checkbuttons not displaying in popup menus.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXMenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 5c40ed8..42064ae 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.55 2011/01/06 04:44:51 wordtech Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.56 2011/01/06 08:05:05 wordtech Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -753,6 +753,7 @@ TkpPostMenu(
NSPopUpButtonCell *popUpButtonCell = [[NSPopUpButtonCell alloc]
initTextCell:@"" pullsDown:NO];
+ [popUpButtonCell setAltersStateOfSelectedItem:NO];
[popUpButtonCell setMenu:menu];
[popUpButtonCell selectItem:nil];
[popUpButtonCell performClickWithFrame:frame inView:view];