diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-02-19 16:02:34 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-02-19 16:02:34 (GMT) |
commit | 595ba695b4ad80cea066dab38d88f05188a84c79 (patch) | |
tree | 4e4db0b0991f5055eca3112073209e1d4e7cdbed | |
parent | 2889c21f06d4a1042a9e42ddbc582e85cc0d3c3f (diff) | |
download | tk-595ba695b4ad80cea066dab38d88f05188a84c79.zip tk-595ba695b4ad80cea066dab38d88f05188a84c79.tar.gz tk-595ba695b4ad80cea066dab38d88f05188a84c79.tar.bz2 |
Add padding to HITheme menubuttons
-rw-r--r-- | macosx/tkMacOSXMenubutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c index 05b553e..4a3c7f8 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, |