summaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
Diffstat (limited to 'mac')
-rw-r--r--mac/tkMacButton.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/mac/tkMacButton.c b/mac/tkMacButton.c
index ce298ed..dc4ecc1 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.10 2000/04/17 02:16:36 jingham Exp $
+ * RCS: @(#) $Id: tkMacButton.c,v 1.11 2000/05/10 00:09:39 ericm Exp $
*/
#include "tkButton.h"
@@ -231,6 +231,19 @@ TkpDisplayButton(
}
/*
+ * 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;
+ }
+ }
+ /*
* See the comment in UpdateControlColors as to why we use the
* highlightbackground for the border of Macintosh buttons.
*/