diff options
author | patthoyts <patthoyts@noemail.net> | 2009-12-27 23:36:23 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2009-12-27 23:36:23 (GMT) |
commit | 5bcb357ae75eabf4cbc15c18f1bd6e04f35cabf9 (patch) | |
tree | 4274d0a52b38d43b2349c0b604545b5deb501e16 | |
parent | 354c7fa46a372f6a93c2c55c4002c2f109d346e2 (diff) | |
download | tk-5bcb357ae75eabf4cbc15c18f1bd6e04f35cabf9.zip tk-5bcb357ae75eabf4cbc15c18f1bd6e04f35cabf9.tar.gz tk-5bcb357ae75eabf4cbc15c18f1bd6e04f35cabf9.tar.bz2 |
Highlight for cascade items in torn-off menus is incorrect on Windows.
Applied patch from [Bug 2879927].
FossilOrigin-Name: 023795dd6539b179a2c335719654f795fe598a12
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win/tkWinMenu.c | 8 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2009-12-27 Pat Thoyts <patthoyts@users.sourceforge.net> + + * win/tkWinMenu.c: Highlight for cascade items in torn-off menus + is incorrect on Windows. Applied patch from [Bug 2879927]. + 2009-12-25 Joe English <jenglish@users.sourceforge.net> * library/ttk/utils.tcl, library/notebook.tcl: diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index d597a16..6b85e6d 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.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: tkWinMenu.c,v 1.69 2009/09/14 23:41:42 hobbs Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.70 2009/12/27 23:36:25 patthoyts Exp $ */ #define OEMRESOURCE @@ -1812,8 +1812,10 @@ DrawMenuEntryArrow( gc->background = activeBgColor->pixel; } - gc->foreground = GetSysColor((mePtr->state == ENTRY_DISABLED) ? - COLOR_GRAYTEXT : COLOR_MENUTEXT); + gc->foreground = GetSysColor((mePtr->state == ENTRY_DISABLED) + ? COLOR_GRAYTEXT + : ((mePtr->state == ENTRY_ACTIVE) + ? COLOR_HIGHLIGHTTEXT : COLOR_MENUTEXT)); rect.top = y + GetSystemMetrics(SM_CYBORDER); rect.bottom = y + height - GetSystemMetrics(SM_CYBORDER); |