diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-06 20:29:39 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-06 20:29:39 (GMT) |
commit | 062332b74070e0ca06b5fefaa039efafe402a624 (patch) | |
tree | 174261b05a2f8773622a82526e3353049af70b4a /generic/ttk/ttkInit.c | |
parent | 62d36b53b20fdda3e415b341f3767ec1d61b526e (diff) | |
download | tk-062332b74070e0ca06b5fefaa039efafe402a624.zip tk-062332b74070e0ca06b5fefaa039efafe402a624.tar.gz tk-062332b74070e0ca06b5fefaa039efafe402a624.tar.bz2 |
Experiment: let's see if we can deprecate Tk_Offset() in favor of offsetof()
Diffstat (limited to 'generic/ttk/ttkInit.c')
-rw-r--r-- | generic/ttk/ttkInit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkInit.c b/generic/ttk/ttkInit.c index 60e3b6f..63df71d 100644 --- a/generic/ttk/ttkInit.c +++ b/generic/ttk/ttkInit.c @@ -178,11 +178,11 @@ int TtkGetOptionValue( Tk_OptionSpec ttkCoreOptionSpecs[] = { {TK_OPTION_CURSOR, "-cursor", "cursor", "Cursor", NULL, - Tk_Offset(WidgetCore, cursorObj), -1, TK_OPTION_NULL_OK,0,0 }, + offsetof(WidgetCore, cursorObj), -1, TK_OPTION_NULL_OK,0,0 }, {TK_OPTION_STRING, "-style", "style", "Style", "", - Tk_Offset(WidgetCore,styleObj), -1, 0,0,STYLE_CHANGED}, + offsetof(WidgetCore,styleObj), -1, 0,0,STYLE_CHANGED}, {TK_OPTION_STRING, "-class", "", "", NULL, - Tk_Offset(WidgetCore,classObj), -1, 0,0,READONLY_OPTION}, + offsetof(WidgetCore,classObj), -1, 0,0,READONLY_OPTION}, {TK_OPTION_END, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0} }; |