diff options
author | lecoanet | 2002-03-26 09:30:28 +0000 |
---|---|---|
committer | lecoanet | 2002-03-26 09:30:28 +0000 |
commit | 8b5cad63bc2203f90324d878a43696011cb6e555 (patch) | |
tree | 57a0a3701f84d9dbe3eb46634e6948c62b9cdf9f /generic/tkZinc.c | |
parent | fb257f808c6b342179fe53d281335d841a6f1ab5 (diff) | |
download | tkzinc-8b5cad63bc2203f90324d878a43696011cb6e555.zip tkzinc-8b5cad63bc2203f90324d878a43696011cb6e555.tar.gz tkzinc-8b5cad63bc2203f90324d878a43696011cb6e555.tar.bz2 tkzinc-8b5cad63bc2203f90324d878a43696011cb6e555.tar.xz |
Correction de itemconfigure pour ne pas reporter d'erreur en cas
d'attribut inconnu sur un tag.
Diffstat (limited to 'generic/tkZinc.c')
-rw-r--r-- | generic/tkZinc.c | 12 |
1 files changed, 9 insertions, 3 deletions
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 } |