summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authorwordtech <wordtech@noemail.net>2011-01-06 08:05:05 (GMT)
committerwordtech <wordtech@noemail.net>2011-01-06 08:05:05 (GMT)
commitfcda652cf4ed2922fb9743d6c536102085598292 (patch)
treec68857dc5d281cae576dca514a840a29d3e2d9f1 /macosx/tkMacOSXMenu.c
parent2ce7d809588663208d4239f618a27f65401e632f (diff)
downloadtk-fcda652cf4ed2922fb9743d6c536102085598292.zip
tk-fcda652cf4ed2922fb9743d6c536102085598292.tar.gz
tk-fcda652cf4ed2922fb9743d6c536102085598292.tar.bz2
Fix for radiobuttons and checkbuttons not displaying in popup menus.
FossilOrigin-Name: 01a419074d1761d3541a5eec2aee72310e5791ed
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-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];