summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-07 09:08:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-07 09:08:28 (GMT)
commit8d6df717b42ddf4ef40167646105da4d5134b824 (patch)
tree5ce2000b45a8b47dfc237626cf1bdeacfcb8ee35 /win
parentbb451dfa1c09cc91c232cae7df94ecd215ee309b (diff)
downloadtk-8d6df717b42ddf4ef40167646105da4d5134b824.zip
tk-8d6df717b42ddf4ef40167646105da4d5134b824.tar.gz
tk-8d6df717b42ddf4ef40167646105da4d5134b824.tar.bz2
Use Ttk_ButtonDefaultState/Ttk_Compound (enums) in stead of "int" in many internal places, because that's the actual type.
Diffstat (limited to 'win')
-rw-r--r--win/ttkWinTheme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/ttkWinTheme.c b/win/ttkWinTheme.c
index 4a74c86..7d26c12 100644
--- a/win/ttkWinTheme.c
+++ b/win/ttkWinTheme.c
@@ -304,7 +304,7 @@ static void ButtonBorderElementSize(
{
ButtonBorderElement *bd = elementRecord;
int relief = TK_RELIEF_RAISED;
- int defaultState = TTK_BUTTON_DEFAULT_DISABLED;
+ Ttk_ButtonDefaultState defaultState = TTK_BUTTON_DEFAULT_DISABLED;
short int cx, cy;
Tk_GetReliefFromObj(NULL, bd->reliefObj, &relief);
@@ -332,7 +332,7 @@ static void ButtonBorderElementDraw(
{
ButtonBorderElement *bd = elementRecord;
int relief = TK_RELIEF_FLAT;
- int defaultState = TTK_BUTTON_DEFAULT_DISABLED;
+ Ttk_ButtonDefaultState defaultState = TTK_BUTTON_DEFAULT_DISABLED;
TkWinDCState dcState;
HDC hdc;
RECT rc;