summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkClassicTheme.c
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 /generic/ttk/ttkClassicTheme.c
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 'generic/ttk/ttkClassicTheme.c')
-rw-r--r--generic/ttk/ttkClassicTheme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/ttk/ttkClassicTheme.c b/generic/ttk/ttkClassicTheme.c
index dadacad..a8f1a29 100644
--- a/generic/ttk/ttkClassicTheme.c
+++ b/generic/ttk/ttkClassicTheme.c
@@ -99,7 +99,7 @@ static void ButtonBorderElementSize(
int *widthPtr, int *heightPtr, Ttk_Padding *paddingPtr)
{
ButtonBorderElement *bd = elementRecord;
- int defaultState = TTK_BUTTON_DEFAULT_DISABLED;
+ Ttk_ButtonDefaultState defaultState = TTK_BUTTON_DEFAULT_DISABLED;
int borderWidth = 0;
Tcl_GetIntFromObj(NULL, bd->borderWidthObj, &borderWidth);
@@ -123,7 +123,7 @@ static void ButtonBorderElementDraw(
ButtonBorderElement *bd = elementRecord;
Tk_3DBorder border = NULL;
int borderWidth = 1, relief = TK_RELIEF_FLAT;
- int defaultState = TTK_BUTTON_DEFAULT_DISABLED;
+ Ttk_ButtonDefaultState defaultState = TTK_BUTTON_DEFAULT_DISABLED;
int inset = 0;
/*