aboutsummaryrefslogtreecommitdiff
path: root/generic/Curve.c
diff options
context:
space:
mode:
authorlecoanet2003-10-02 07:43:04 +0000
committerlecoanet2003-10-02 07:43:04 +0000
commita354fc49fa1070bd2912cc7ec683322ba4f886fb (patch)
tree39aad98f3c8270f2a146bc0ca8633641128fc27a /generic/Curve.c
parentc461fdead5457900f741412e2a7a5f6df9fe0b15 (diff)
downloadtkzinc-a354fc49fa1070bd2912cc7ec683322ba4f886fb.zip
tkzinc-a354fc49fa1070bd2912cc7ec683322ba4f886fb.tar.gz
tkzinc-a354fc49fa1070bd2912cc7ec683322ba4f886fb.tar.bz2
tkzinc-a354fc49fa1070bd2912cc7ec683322ba4f886fb.tar.xz
Tiles and markers are updated when their images are changed, the tk image
update mecanism is now fully fonctional.
Diffstat (limited to 'generic/Curve.c')
-rw-r--r--generic/Curve.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/Curve.c b/generic/Curve.c
index 5c1e8cc..202e0ce 100644
--- a/generic/Curve.c
+++ b/generic/Curve.c
@@ -321,13 +321,13 @@ Clone(ZnItem item)
ZnLineEndDuplicate(cv->last_end);
}
if (cv->tile != ZnUnspecifiedImage) {
- cv->tile = ZnGetImageByValue(cv->tile);
+ cv->tile = ZnGetImageByValue(cv->tile, ZnUpdateItemImage, item);
}
if (cv->line_pattern != ZnUnspecifiedImage) {
- cv->line_pattern = ZnGetImageByValue(cv->line_pattern);
+ cv->line_pattern = ZnGetImageByValue(cv->line_pattern, NULL, NULL);
}
if (cv->marker != ZnUnspecifiedImage) {
- cv->marker = ZnGetImageByValue(cv->marker);
+ cv->marker = ZnGetImageByValue(cv->marker, NULL, NULL);
}
cv->line_color = ZnGetGradientByValue(cv->line_color);
cv->fill_color = ZnGetGradientByValue(cv->fill_color);
@@ -377,15 +377,15 @@ Destroy(ZnItem item)
ZnFreeGradient(cv->gradient);
}
if (cv->tile != ZnUnspecifiedImage) {
- ZnFreeImage(cv->tile);
+ ZnFreeImage(cv->tile, ZnUpdateItemImage, item);
cv->tile = ZnUnspecifiedImage;
}
if (cv->line_pattern != ZnUnspecifiedImage) {
- ZnFreeImage(cv->line_pattern);
+ ZnFreeImage(cv->line_pattern, NULL, NULL);
cv->line_pattern = ZnUnspecifiedImage;
}
if (cv->marker != ZnUnspecifiedImage) {
- ZnFreeImage(cv->marker);
+ ZnFreeImage(cv->marker, NULL, NULL);
cv->marker = ZnUnspecifiedImage;
}
ZnFreeGradient(cv->fill_color);
@@ -458,7 +458,7 @@ Configure(ZnItem item,
XColor *color;
unsigned short alpha;
- status = ZnConfigureAttributes(wi, item, cv_attrs, argc, argv, flags);
+ status = ZnConfigureAttributes(wi, item, item, cv_attrs, argc, argv, flags);
if (cv->gradient &&
(ISSET(*flags, ZN_BORDER_FLAG) || (cv->relief == ZN_RELIEF_FLAT))) {