diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-17 19:49:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-17 19:49:30 (GMT) |
commit | 70385d2f5041501defd7445e9e56eff43b95341b (patch) | |
tree | f705d088874f29fa02b69a0c0b20c7f683be37d9 /generic/ttk/ttkTheme.h | |
parent | d9fab9358566b092f8f4f24c629721e04b1370f9 (diff) | |
download | tk-70385d2f5041501defd7445e9e56eff43b95341b.zip tk-70385d2f5041501defd7445e9e56eff43b95341b.tar.gz tk-70385d2f5041501defd7445e9e56eff43b95341b.tar.bz2 |
One more round of int -> size_t improvements (inspired by TIP #494, but then for Tk).
Diffstat (limited to 'generic/ttk/ttkTheme.h')
-rw-r--r-- | generic/ttk/ttkTheme.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/ttk/ttkTheme.h b/generic/ttk/ttkTheme.h index 9251dea..f087ce3 100644 --- a/generic/ttk/ttkTheme.h +++ b/generic/ttk/ttkTheme.h @@ -234,11 +234,19 @@ typedef void (Ttk_ElementSizeProc)(void *clientData, void *elementRecord, typedef void (Ttk_ElementDrawProc)(void *clientData, void *elementRecord, Tk_Window tkwin, Drawable d, Ttk_Box b, Ttk_State state); +#ifndef TkSizeT +# if TCL_MAJOR_VERSION > 8 +# define TkSizeT size_t +# else +# define TkSizeT int +# endif +#endif + typedef struct Ttk_ElementOptionSpec { const char *optionName; /* Command-line name of the widget option */ Tk_OptionType type; /* Accepted option types */ - int offset; /* Offset of Tcl_Obj* field in element record */ + TkSizeT offset; /* Offset of Tcl_Obj* field in element record */ const char *defaultValue; /* Default value to used if resource missing */ } Ttk_ElementOptionSpec; |