(xaw_update_one_widget): Use XtSetSensitive instead

of setting the value of XtNsensitive.
This commit is contained in:
Gerd Moellmann 2001-02-28 14:55:33 +00:00
parent 2f87cc746e
commit 2a73ab6066
2 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,13 @@
2001-02-28 Gerd Moellmann <gerd@gnu.org>
* lwlib-Xaw.c (xaw_update_one_widget): Use XtSetSensitive instead
of setting the value of XtNsensitive.
* lwlib-Xm.c (xm_update_radiobox, update_one_menu_entry)
(xm_update_one_widget): Use XtSetSensitive instead of setting the
value of XmNsensitive. From Rick Scott
<rwscott@alumni.uwaterloo.ca>.
2000-12-14 Dave Love <fx@gnu.org>
* xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from

View file

@ -154,11 +154,11 @@ xaw_update_one_widget (instance, widget, val, deep_p)
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);
}