summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenubutton.c
diff options
context:
space:
mode:
authorculler <culler>2019-04-24 17:35:10 (GMT)
committerculler <culler>2019-04-24 17:35:10 (GMT)
commitbf19ff82cc3fb7362d1b9f268e090b7668d65239 (patch)
tree191342bc7580d5880dbc99342cb1e24f200600c2 /macosx/tkMacOSXMenubutton.c
parentc48fd5cadb4b8faadbd12969719825c5548df544 (diff)
parent992e83396570dcf0c161abd79226964eb535ad57 (diff)
downloadtk-bf19ff82cc3fb7362d1b9f268e090b7668d65239.zip
tk-bf19ff82cc3fb7362d1b9f268e090b7668d65239.tar.gz
tk-bf19ff82cc3fb7362d1b9f268e090b7668d65239.tar.bz2
Fix bug [1001070]: make labels use -highlightbackground
Diffstat (limited to 'macosx/tkMacOSXMenubutton.c')
-rw-r--r--macosx/tkMacOSXMenubutton.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c
index 33ae213..93300a0 100644
--- a/macosx/tkMacOSXMenubutton.c
+++ b/macosx/tkMacOSXMenubutton.c
@@ -195,10 +195,11 @@ TkpDisplayMenuButton(
* Draw highlight border, if needed.
*/
- if ((butPtr->highlightWidth < 3) && (butPtr->flags & GOT_FOCUS)) {
- Tk_Draw3DRectangle(tkwin, pixmap, butPtr->normalBorder, 0, 0,
- Tk_Width(tkwin), Tk_Height(tkwin),
- butPtr->highlightWidth, TK_RELIEF_SOLID);
+ if (butPtr->highlightWidth < 3) {
+ if (butPtr->flags & GOT_FOCUS) {
+ GC gc = Tk_GCForColor(butPtr->highlightColorPtr, pixmap);
+ TkMacOSXDrawSolidBorder(tkwin, gc, 0, butPtr->highlightWidth);
+ }
}
}