summaryrefslogtreecommitdiffstats
path: root/macosx/ttkMacOSXTheme.c
diff options
context:
space:
mode:
authordas <das>2008-12-07 16:29:38 (GMT)
committerdas <das>2008-12-07 16:29:38 (GMT)
commit1d760cc206986a48c40ab02d3797e43ed1654772 (patch)
tree7de10528ab8d948837c8e3e3aaf377016d66ab75 /macosx/ttkMacOSXTheme.c
parentb418672b14828cc0a6fed41d86b7f3e5f1c88718 (diff)
downloadtk-1d760cc206986a48c40ab02d3797e43ed1654772.zip
tk-1d760cc206986a48c40ab02d3797e43ed1654772.tar.gz
tk-1d760cc206986a48c40ab02d3797e43ed1654772.tar.bz2
SeparatorElementSize: fix state lookup
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r--macosx/ttkMacOSXTheme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index 61fb213..bc9fabc 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.22 2008/05/04 17:17:33 jenglish Exp $
+ * RCS: @(#) $Id: ttkMacOSXTheme.c,v 1.23 2008/12/07 16:29:38 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