diff options
author | drh <drh@noemail.net> | 2002-08-28 01:08:06 (GMT) |
---|---|---|
committer | drh <drh@noemail.net> | 2002-08-28 01:08:06 (GMT) |
commit | 7e140d6c071ee633bf9cd1b45efc08252bb26974 (patch) | |
tree | 5960f61fed46a9f73cf486909c92874ca51c7171 /mac/tkMacButton.c | |
parent | 0ef72c0fef6beda66f5f1e0516096e6425668a94 (diff) | |
download | tk-7e140d6c071ee633bf9cd1b45efc08252bb26974.zip tk-7e140d6c071ee633bf9cd1b45efc08252bb26974.tar.gz tk-7e140d6c071ee633bf9cd1b45efc08252bb26974.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.
FossilOrigin-Name: 9abdf011ca88bab450f8f209eef2613da8ec603f
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; + } } } |