aboutsummaryrefslogtreecommitdiff
path: root/generic/Group.c
diff options
context:
space:
mode:
authorlecoanet2002-03-15 14:14:59 +0000
committerlecoanet2002-03-15 14:14:59 +0000
commit01c32de1c22fb456ede293f9ae537c8711f9ef86 (patch)
tree95e490a8acf30a0a8ff26f4db201e6f07adebf29 /generic/Group.c
parent1130d6cd5b4bbc52c3cbd81c46b7b26008bf87e4 (diff)
downloadtkzinc-01c32de1c22fb456ede293f9ae537c8711f9ef86.zip
tkzinc-01c32de1c22fb456ede293f9ae537c8711f9ef86.tar.gz
tkzinc-01c32de1c22fb456ede293f9ae537c8711f9ef86.tar.bz2
tkzinc-01c32de1c22fb456ede293f9ae537c8711f9ef86.tar.xz
Suppression de l'inset.
Ajustement des ressources couleurs pour tenir compte de la g�n�ralisation des gradients.
Diffstat (limited to 'generic/Group.c')
-rw-r--r--generic/Group.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/generic/Group.c b/generic/Group.c
index 527b49c..73df941 100644
--- a/generic/Group.c
+++ b/generic/Group.c
@@ -171,7 +171,7 @@ Clone(Item item)
for (i = 0; i < num_items; i++, items++) {
entry = Tcl_FindHashEntry(&mapping, (char *) *items);
if (entry == NULL) {
- ZnWarning("Can't find item correspondance in Group Clone");
+ ZnWarning("Can't find item correspondance in Group Clone\n");
abort();
}
else {
@@ -179,7 +179,7 @@ Clone(Item item)
}
entry = Tcl_FindHashEntry(&mapping, (char *) current_item->connected_item);
if (entry == NULL) {
- ZnWarning("Can't found item correspondance in Group Clone");
+ ZnWarning("Can't found item correspondance in Group Clone\n");
abort();
}
else {
@@ -315,8 +315,8 @@ SetXShape(Item grp)
* then Translate it in a region and apply this region to
* the window.
*/
- width = wi->width + 2*wi->inset;
- height = wi->height + 2*wi->inset;
+ width = wi->width;
+ height = wi->height;
for (j = 0; j < tristrip.num_strips; j++) {
p = tristrip.strips[j].points;
num_pts = tristrip.strips[j].num_points;
@@ -851,7 +851,8 @@ Draw(Item item)
current_item->class->Draw(current_item);
if (wi->draw_bboxes) {
XGCValues values;
- values.foreground = ZnPixel(wi->bbox_color);
+ values.foreground = ZnPixel(ZnGetGradientColor(wi->bbox_color,
+ 0, NULL));
values.fill_style = FillSolid;
values.line_width = 1;
values.line_style = (current_item->class==ZnGroup)?LineOnOffDash:LineSolid;