aboutsummaryrefslogtreecommitdiff
path: root/generic/Tabular.c
diff options
context:
space:
mode:
authorlecoanet2004-04-30 12:08:17 +0000
committerlecoanet2004-04-30 12:08:17 +0000
commitbccc75526f55d54758d252e0dbae7cab3e07bd8e (patch)
tree65b20821ffafc30c99bbba46f46a8c0644101c72 /generic/Tabular.c
parent7735e1d377913991bf2d5e212f6ee20555f616dc (diff)
downloadtkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.zip
tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.tar.gz
tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.tar.bz2
tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.tar.xz
Modification of ZnQueryAttribute signature
Adaptation for the new global variables Reworking of the class structure
Diffstat (limited to 'generic/Tabular.c')
-rw-r--r--generic/Tabular.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/Tabular.c b/generic/Tabular.c
index 42fa9e3..382342c 100644
--- a/generic/Tabular.c
+++ b/generic/Tabular.c
@@ -211,7 +211,7 @@ Configure(ZnItem item,
* to the old one.
*/
if ((item->connected_item == ZN_NO_ITEM) ||
- (item->connected_item->class->has_anchors &&
+ (ISSET(item->connected_item->class->flags, ZN_CLASS_HAS_ANCHORS) &&
(item->parent == item->connected_item->parent))) {
ZnITEM.UpdateItemDependency(item, old_connected);
}
@@ -236,7 +236,7 @@ Query(ZnItem item,
int argc __unused,
Tcl_Obj *CONST argv[])
{
- if (ZnQueryAttribute(item->wi, item, tabular_attrs, argv[0]) == TCL_ERROR) {
+ if (ZnQueryAttribute(item->wi->interp, item, tabular_attrs, argv[0]) == TCL_ERROR) {
return TCL_ERROR;
}
@@ -466,8 +466,8 @@ GetClipVertices(ZnItem item,
if (field_set->label_format) {
ZnFIELD.GetLabelBBox(field_set, &width, &height);
- ZnListAssertSize(item->wi->work_pts, 2);
- points = (ZnPoint *) ZnListArray(item->wi->work_pts);
+ ZnListAssertSize(ZnWorkPoints, 2);
+ points = (ZnPoint *) ZnListArray(ZnWorkPoints);
ZnTriStrip1(tristrip, points, 2, False);
points[0] = field_set->label_pos;
points[1].x = points[0].x + width;
@@ -670,11 +670,11 @@ Selection(ZnItem item,
**********************************************************************************
*/
static ZnItemClassStruct TABULAR_ITEM_CLASS = {
- sizeof(TabularItemStruct),
- 0, /* num_parts */
- True, /* has_anchors */
"tabular",
+ sizeof(TabularItemStruct),
tabular_attrs,
+ ZN_CLASS_HAS_ANCHORS|ZN_CLASS_ONE_COORD, /* flags */
+ True, /* has_anchors */
Tk_Offset(TabularItemStruct, pos),
Init,
Clone,