diff options
author | jenglish <jenglish@flightlab.com> | 2007-11-08 01:40:24 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2007-11-08 01:40:24 (GMT) |
commit | 20121b9b291bee97ea1985c2b3c16470ee92afa1 (patch) | |
tree | add48b19aba5fd375a93fc51364bb2e52cfb953d /macosx/ttkMacOSXTheme.c | |
parent | 467a688247fb6279144a01f04bac8aac679d166b (diff) | |
download | tk-20121b9b291bee97ea1985c2b3c16470ee92afa1.zip tk-20121b9b291bee97ea1985c2b3c16470ee92afa1.tar.gz tk-20121b9b291bee97ea1985c2b3c16470ee92afa1.tar.bz2 |
Ttk_ElementSize: Fixed longstanding, subtle bug that caused element padding
to sometimes be counted twice in size computations.
Fix ElementSizeProcs affected by previous change.
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index 88ff37a..9ca20ae 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.14 2007/11/05 16:37:50 jenglish Exp $ + * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.15 2007/11/08 01:40:25 jenglish Exp $ */ #include "tkMacOSXPrivate.h" @@ -205,6 +205,8 @@ static void ButtonElementSize( */ *paddingPtr = Ttk_AddPadding(*paddingPtr, ButtonMargins); + *widthPtr += Ttk_PaddingWidth(ButtonMargins); + *heightPtr += Ttk_PaddingHeight(ButtonMargins); } static void ButtonElementDraw( |