summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das>2007-10-17 18:21:24 (GMT)
committerdas <das>2007-10-17 18:21:24 (GMT)
commit06aac43788b42da26dec6e6a57265b232a506c26 (patch)
treee6c124bbc1ff2a3c6ddc73bc1fe421e44cedd516
parent5faf7ade19c640eec93f4a683775153498d865bc (diff)
downloadtk-06aac43788b42da26dec6e6a57265b232a506c26.zip
tk-06aac43788b42da26dec6e6a57265b232a506c26.tar.gz
tk-06aac43788b42da26dec6e6a57265b232a506c26.tar.bz2
* macosx/ttkMacOSXTheme.c: adjust button and separator geometry.
-rw-r--r--macosx/ttkMacOSXTheme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index 6294a5a..a65fff0 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -27,7 +27,7 @@
* top-level window, not to the Tk_Window. BoxToRect()
* accounts for this.
*
- * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.9 2007/10/12 03:14:49 das Exp $
+ * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.10 2007/10/17 18:21:24 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -198,7 +198,7 @@ static void ButtonElementGeometry(
paddingPtr->left = contentsRect.left;
paddingPtr->top = contentsRect.top;
paddingPtr->bottom = scratchSize - contentsRect.bottom;
- paddingPtr->right = scratchSize - contentsRect.right;
+ paddingPtr->right = scratchSize - contentsRect.right + 1;
/* Now add a little extra padding to account for drop shadows.
* @@@ SHOULD: call GetThemeButtonBackgroundBounds() instead.
@@ -681,7 +681,7 @@ static void SeparatorElementSize(
void *clientData, void *elementRecord, Tk_Window tkwin,
int *widthPtr, int *heightPtr, Ttk_Padding *paddingPtr)
{
- *widthPtr = *heightPtr = 2;
+ *widthPtr = *heightPtr = 1;
}
static void SeparatorElementDraw(