From 01c32de1c22fb456ede293f9ae537c8711f9ef86 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 15 Mar 2002 14:14:59 +0000 Subject: Suppression de l'inset. Ajustement des ressources couleurs pour tenir compte de la g�n�ralisation des gradients. --- generic/Group.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'generic') 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; -- cgit v1.1