diff options
author | lecoanet | 2004-04-30 12:04:50 +0000 |
---|---|---|
committer | lecoanet | 2004-04-30 12:04:50 +0000 |
commit | b1190ee017bfcb11ce2a7c98e1d395aa72e9978f (patch) | |
tree | 9857bf50a7ae4c4ba25be7d62c19255e07ad1dea | |
parent | 0ecb5cdf9b0880344a01f1d865d6351cac0e0ab7 (diff) | |
download | tkzinc-b1190ee017bfcb11ce2a7c98e1d395aa72e9978f.zip tkzinc-b1190ee017bfcb11ce2a7c98e1d395aa72e9978f.tar.gz tkzinc-b1190ee017bfcb11ce2a7c98e1d395aa72e9978f.tar.bz2 tkzinc-b1190ee017bfcb11ce2a7c98e1d395aa72e9978f.tar.xz |
Modification of ZnQueryAttribute signature
Reworking of the class structure
-rw-r--r-- | generic/Track.c | 16 |
1 files changed, 8 insertions, 8 deletions
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, |