From b1190ee017bfcb11ce2a7c98e1d395aa72e9978f Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 30 Apr 2004 12:04:50 +0000 Subject: Modification of ZnQueryAttribute signature Reworking of the class structure --- generic/Track.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'generic/Track.c') diff --git a/generic/Track.c b/generic/Track.c index 7de1248..9af4cee 100644 --- a/generic/Track.c +++ b/generic/Track.c @@ -680,7 +680,7 @@ Query(ZnItem item, int argc __unused, Tcl_Obj *CONST argv[]) { - if (ZnQueryAttribute(item->wi, item, track_attrs, argv[0]) == TCL_ERROR) { + if (ZnQueryAttribute(item->wi->interp, item, track_attrs, argv[0]) == TCL_ERROR) { return TCL_ERROR; } @@ -2289,18 +2289,18 @@ Selection(ZnItem item, ********************************************************************************** */ /* - * Track and WP -position attribute is not handled the same way as other + * Track -position attribute is not handled the same way as other * interface items like texts, icons and such, as it make little sense * to change the local transform of a track. It is always processed as * a point in the coordinate system of the track's parent. It is the same * for the points in the history and the speed vector end. */ static ZnItemClassStruct TRACK_ITEM_CLASS = { - sizeof(TrackItemStruct), - 4, /* num_parts */ - True, /* has_anchors */ "track", + sizeof(TrackItemStruct), track_attrs, + 4, /* num_parts */ + ZN_CLASS_HAS_ANCHORS|ZN_CLASS_ONE_COORD, /* flags */ -1, Init, Clone, @@ -2330,11 +2330,11 @@ static ZnItemClassStruct TRACK_ITEM_CLASS = { }; static ZnItemClassStruct WAY_POINT_ITEM_CLASS = { - sizeof(TrackItemStruct), - 3, /* num_parts */ - True, /* has_anchors */ "waypoint", + sizeof(TrackItemStruct), wp_attrs, + 3, /* num_parts */ + ZN_CLASS_HAS_ANCHORS|ZN_CLASS_ONE_COORD, /* flags */ -1, Init, Clone, -- cgit v1.1