diff options
author | drh@sqlite.org <drh> | 2002-08-28 01:08:06 (GMT) |
---|---|---|
committer | drh@sqlite.org <drh> | 2002-08-28 01:08:06 (GMT) |
commit | d79a6c14c3ddf275b5ce4a4fec79ecd942b450c0 (patch) | |
tree | 5960f61fed46a9f73cf486909c92874ca51c7171 /mac/tkMacButton.c | |
parent | a8b40cbe5269469f43b4864657556926f6bb41a9 (diff) | |
download | tk-d79a6c14c3ddf275b5ce4a4fec79ecd942b450c0.zip tk-d79a6c14c3ddf275b5ce4a4fec79ecd942b450c0.tar.gz tk-d79a6c14c3ddf275b5ce4a4fec79ecd942b450c0.tar.bz2 |
Fix for bug #582457: make radio and checkbuttons work like Windows when
-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; + } } } |