summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenubutton.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-19 16:02:44 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-19 16:02:44 (GMT)
commit8fd2c76d00d04abda00bcefb2817feb924da7bfe (patch)
tree8aacd2a49d9b05e948f628ac89e020dd07fc5c76 /macosx/tkMacOSXMenubutton.c
parent5cab41c4b7b5c0a3d6f2b08140c5308a366f6094 (diff)
downloadtk-8fd2c76d00d04abda00bcefb2817feb924da7bfe.zip
tk-8fd2c76d00d04abda00bcefb2817feb924da7bfe.tar.gz
tk-8fd2c76d00d04abda00bcefb2817feb924da7bfe.tar.bz2
Add padding to HITheme menubuttons
Diffstat (limited to 'macosx/tkMacOSXMenubutton.c')
-rw-r--r--macosx/tkMacOSXMenubutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c
index d1ce553..a85e572 100644
--- a/macosx/tkMacOSXMenubutton.c
+++ b/macosx/tkMacOSXMenubutton.c
@@ -539,10 +539,10 @@ DrawMenuButtonImageAndText(
XSetClipOrigin(butPtr->display, dpPtr->gc, 0, 0);
}
} else {
- /*Move x back by six pixels to give the menubutton arrows room.*/
+ /*Move x back by eight pixels to give the menubutton arrows room.*/
int x = 0;
int y;
- textXOffset = 6;
+ textXOffset = 8;
TkComputeAnchor(butPtr->anchor, tkwin, butPtr->padX, butPtr->padY,
butPtr->textWidth, butPtr->textHeight, &x, &y);
Tk_DrawTextLayout(butPtr->display, pixmap, dpPtr->gc,