summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvBmap.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-09-29 08:04:01 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-09-29 08:04:01 (GMT)
commit8af92a82ec9b2a28d3de7125d9591a5657f605b0 (patch)
treed6bdd95b178300d4d32750ec64f583efb7a010ed /generic/tkCanvBmap.c
parent3018c010a7091f6aa32cab66450756969c288322 (diff)
downloadtk-8af92a82ec9b2a28d3de7125d9591a5657f605b0.zip
tk-8af92a82ec9b2a28d3de7125d9591a5657f605b0.tar.gz
tk-8af92a82ec9b2a28d3de7125d9591a5657f605b0.tar.bz2
Fix Tk_Offset() -> offsetof(). Tk_Offset() was inherited by merging chavez-canvas branch that originally targeted core-8-6-branch.
Diffstat (limited to 'generic/tkCanvBmap.c')
-rw-r--r--generic/tkCanvBmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvBmap.c b/generic/tkCanvBmap.c
index 0a7a47a..e7b19ae 100644
--- a/generic/tkCanvBmap.c
+++ b/generic/tkCanvBmap.c
@@ -71,7 +71,7 @@ static const Tk_ConfigSpec configSpecs[] = {
NULL, offsetof(BitmapItem, disabledFgColor),
TK_CONFIG_NULL_OK, NULL},
{TK_CONFIG_COLOR, "-foreground", NULL, NULL,
- DEF_CANVBMAP_FG, Tk_Offset(BitmapItem, fgColor), 0, NULL},
+ DEF_CANVBMAP_FG, offsetof(BitmapItem, fgColor), 0, NULL},
{TK_CONFIG_CUSTOM, "-state", NULL, NULL,
NULL, offsetof(Tk_Item, state), TK_CONFIG_NULL_OK,
&stateOption},