summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-05-11 00:40:16 (GMT)
committerericm <ericm@noemail.net>2000-05-11 00:40:16 (GMT)
commit52860e06ae5479331371f1c8b1816dd6b7ab7b4d (patch)
tree31370141450ba7079b5f9a55cdb63ed83afde3a2 /win/tkWinButton.c
parent66b28da301229dcb5b8e141b9a2b1a1e79089e15 (diff)
downloadtk-52860e06ae5479331371f1c8b1816dd6b7ab7b4d.zip
tk-52860e06ae5479331371f1c8b1816dd6b7ab7b4d.tar.gz
tk-52860e06ae5479331371f1c8b1816dd6b7ab7b4d.tar.bz2
Added link relief support.
FossilOrigin-Name: 27c077f9102cd1e07d9d1dbcc37e14576c8ffca2
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r--win/tkWinButton.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index 77135fb..3a78d29 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.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: tkWinButton.c,v 1.6 1999/09/21 06:43:06 hobbs Exp $
+ * RCS: @(#) $Id: tkWinButton.c,v 1.7 2000/05/11 00:40:16 ericm Exp $
*/
#define OEMRESOURCE
@@ -390,6 +390,20 @@ TkpDisplayButton(clientData)
}
/*
+ * LINK relief means that the button has a raised relief when it is
+ * active, and a flat relief otherwise (like toolbar buttons). It
+ * is supported for true buttons only.
+ */
+
+ if ((butPtr->type == TYPE_BUTTON) && butPtr->relief == TK_RELIEF_LINK) {
+ if (butPtr->state == STATE_ACTIVE) {
+ relief = TK_RELIEF_RAISED;
+ } else {
+ relief = TK_RELIEF_FLAT;
+ }
+ }
+
+ /*
* Compute width of default ring and offset for pushed buttons.
*/