From e16ace7494c18ca956b24fad670adf43fb0feba3 Mon Sep 17 00:00:00 2001 From: ericm Date: Fri, 28 Jul 2000 17:37:23 +0000 Subject: * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bit for disabled menu entries, to ensure that those which are drawn by the system are shown grayed (such as entries on menubars) [Bug: 4372]. --- ChangeLog | 4 ++++ win/tkWinMenu.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88b36c4..de3c983 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-07-28 Eric Melski + * win/tkWinMenu.c (ReconfigureWindowsMenu): Added MF_GRAYED bit + for disabled menu entries, to ensure that those which are drawn by + the system are shown grayed (such as entries on menubars) [Bug: 4372]. + * doc/label.n: Added -disabledforeground to list of options [Bug: 6053]. diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 7dd0458..54d6c1e 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -9,7 +9,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.11 2000/07/06 03:17:44 mo Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.12 2000/07/28 17:37:24 ericm Exp $ */ #define OEMRESOURCE @@ -582,7 +582,7 @@ ReconfigureWindowsMenu( */ if (mePtr->state == ENTRY_DISABLED) { - flags |= MF_DISABLED; + flags |= MF_DISABLED | MF_GRAYED; } /* -- cgit v0.12