summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixButton.c
diff options
context:
space:
mode:
authordrh@sqlite.org <drh>2002-06-17 10:54:29 (GMT)
committerdrh@sqlite.org <drh>2002-06-17 10:54:29 (GMT)
commitd2ceff8d9daeb8b9931ea519936ca9e61aa29810 (patch)
tree23b6e0c259b3c43053f44dbf6557b7a8ea074079 /unix/tkUnixButton.c
parent3edac64f99d80e11142de85fc8d7280b3801d35c (diff)
downloadtk-d2ceff8d9daeb8b9931ea519936ca9e61aa29810.zip
tk-d2ceff8d9daeb8b9931ea519936ca9e61aa29810.tar.gz
tk-d2ceff8d9daeb8b9931ea519936ca9e61aa29810.tar.bz2
Initial implementation of TIP #82: added the -offrelief option to
checkbutton and radiobutton to allow those widgets to have a MS-Office look and feel.
Diffstat (limited to 'unix/tkUnixButton.c')
-rw-r--r--unix/tkUnixButton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixButton.c b/unix/tkUnixButton.c
index 46dff22..bac7785 100644
--- a/unix/tkUnixButton.c
+++ b/unix/tkUnixButton.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: tkUnixButton.c,v 1.8 2000/11/22 01:49:38 ericm Exp $
+ * RCS: @(#) $Id: tkUnixButton.c,v 1.9 2002/06/17 10:54:29 drh Exp $
*/
#include "tkButton.h"
@@ -121,7 +121,7 @@ TkpDisplayButton(clientData)
relief = butPtr->relief;
if ((butPtr->type >= TYPE_CHECK_BUTTON) && !butPtr->indicatorOn) {
relief = (butPtr->flags & SELECTED) ? TK_RELIEF_SUNKEN
- : TK_RELIEF_RAISED;
+ : butPtr->offRelief;
}
offset = (butPtr->type == TYPE_BUTTON) && !Tk_StrictMotif(butPtr->tkwin);