From 06aac43788b42da26dec6e6a57265b232a506c26 Mon Sep 17 00:00:00 2001 From: das Date: Wed, 17 Oct 2007 18:21:24 +0000 Subject: * macosx/ttkMacOSXTheme.c: adjust button and separator geometry. --- macosx/ttkMacOSXTheme.c | 6 +++--- 1 file 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( -- cgit v0.12