diff options
author | drh <drh@sqlite.org> | 2002-08-28 01:08:06 (GMT) |
---|---|---|
committer | drh <drh@sqlite.org> | 2002-08-28 01:08:06 (GMT) |
commit | 62d94160aed093a9505d60181a1509e69bd02bb6 (patch) | |
tree | 5960f61fed46a9f73cf486909c92874ca51c7171 /mac/tkMacButton.c | |
parent | cba98af9a6ea332576939b71f74b5ffbdb4c61f3 (diff) | |
download | tk-62d94160aed093a9505d60181a1509e69bd02bb6.zip tk-62d94160aed093a9505d60181a1509e69bd02bb6.tar.gz tk-62d94160aed093a9505d60181a1509e69bd02bb6.tar.bz2 |
Fix for bug #582457: make radio and checkbuttons work like Windows whenmacosx_8_4_premerge_2002_08_31_trunkmacosx_8_4_merge_2002_08_30_trunk
-relief is sunken, -offrelief is flat, and -overrelief is raised.
Diffstat (limited to 'mac/tkMacButton.c')
-rw-r--r-- | mac/tkMacButton.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mac/tkMacButton.c b/mac/tkMacButton.c index 8d9f57a..2c11dba 100644 --- a/mac/tkMacButton.c +++ b/mac/tkMacButton.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: tkMacButton.c,v 1.16 2002/06/17 10:54:29 drh Exp $ + * RCS: @(#) $Id: tkMacButton.c,v 1.17 2002/08/28 01:08:06 drh Exp $ */ #include "tkButton.h" @@ -227,8 +227,11 @@ TkpDisplayButton( if ((butPtr->type >= TYPE_CHECK_BUTTON) && !butPtr->indicatorOn) { if (!TkMacHaveAppearance() || !hasImageOrBitmap) { - relief = (butPtr->flags & SELECTED) ? TK_RELIEF_SUNKEN - : butPtr->offRelief; + if (butPtr->flags & SELECTED) { + relief = TK_RELIEF_SUNKEN; + } else if (butPtr->overRelief != relief) { + relief = butPtr->offRelief; + } } } |