Mercurial > emacs
changeset 36438:78f5e669dc5e
(xaw_update_one_widget): Use XtSetSensitive instead
of setting the value of XtNsensitive.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 28 Feb 2001 14:55:17 +0000 |
parents | d45267642a42 |
children | f29ccc7908b6 |
files | lwlib/lwlib-Xaw.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlib/lwlib-Xaw.c Wed Feb 28 14:54:54 2001 +0000 +++ b/lwlib/lwlib-Xaw.c Wed Feb 28 14:55:17 2001 +0000 @@ -154,11 +154,11 @@ XtSetValues (widget, al, 1); } + XtSetSensitive (widget, val->enabled); XtSetArg (al[0], XtNlabel, val->value); - XtSetArg (al[1], XtNsensitive, val->enabled); /* Force centered button text. Se above. */ - XtSetArg (al[2], XtNjustify, XtJustifyCenter); - XtSetValues (widget, al, 3); + XtSetArg (al[1], XtNjustify, XtJustifyCenter); + XtSetValues (widget, al, 2); XtRemoveAllCallbacks (widget, XtNcallback); XtAddCallback (widget, XtNcallback, xaw_generic_callback, instance); }