From 8b5cad63bc2203f90324d878a43696011cb6e555 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 26 Mar 2002 09:30:28 +0000 Subject: Correction de itemconfigure pour ne pas reporter d'erreur en cas d'attribut inconnu sur un tag. --- generic/tkZinc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'generic/tkZinc.c') diff --git a/generic/tkZinc.c b/generic/tkZinc.c index 6d20d36..243f0dc 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -3520,12 +3520,16 @@ WidgetObjCmd(ClientData client_data, /* Information about the widget. */ else { result = ITEM.ConfigureItem(item, field, argc, args, False); } - if (result == ZN_ERROR) { - goto error; - } if (argc < 2) { goto done; } + /* + * Report an error only if itemconfigure was invoke + * on a specific item. + */ + if ((result == ZN_ERROR) && (search_var->type == 1)) { + goto error; + } } } break; @@ -4488,6 +4492,7 @@ Focus(WidgetInfo *wi, if (wi->highlight_width > 0) { ZnNeedRedisplay(wi); } +#ifdef GLX_DAMAGE if (wi->render) { ZnBBox bbox; @@ -4497,6 +4502,7 @@ Focus(WidgetInfo *wi, ITEM_P.Damage(wi, &bbox); ZnNeedRedisplay(wi); } +#endif } -- cgit v1.1