diff options
author | das <das> | 2008-12-07 16:40:30 (GMT) |
---|---|---|
committer | das <das> | 2008-12-07 16:40:30 (GMT) |
commit | 87e0a635a002b3aec67b833b811fc2f45f92b265 (patch) | |
tree | a338c51c6295c3f39768ed6c4482c562b62caf24 /macosx/ttkMacOSXTheme.c | |
parent | de285a6b69c6bb259eb36c5afc7f5dd91a984ad6 (diff) | |
download | tk-87e0a635a002b3aec67b833b811fc2f45f92b265.zip tk-87e0a635a002b3aec67b833b811fc2f45f92b265.tar.gz tk-87e0a635a002b3aec67b833b811fc2f45f92b265.tar.bz2 |
SeparatorElementSize: fix state lookup
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index 042ab98..4cdf80c 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.21.2.1 2008/05/04 17:16:51 jenglish Exp $ + * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.21.2.2 2008/12/07 16:40:30 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -700,12 +700,13 @@ static void SeparatorElementDraw( Drawable d, Ttk_Box b, unsigned int state) { Rect bounds = BoxToRect(d, b); - ThemeDrawState drawState = Ttk_StateTableLookup(ThemeStateTable, state); + ThemeDrawState drawState; /* * DrawThemeSeparator only supports kThemeStateActive / kThemeStateInactive */ state &= TTK_STATE_BACKGROUND; + drawState = Ttk_StateTableLookup(ThemeStateTable, state); BEGIN_DRAWING(d) ChkErr(DrawThemeSeparator, &bounds, drawState); END_DRAWING |