Commit 2a73ab60 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(xaw_update_one_widget): Use XtSetSensitive instead

of setting the value of XtNsensitive.
parent 2f87cc74
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> 2000-12-14 Dave Love <fx@gnu.org>
* xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from * xlwmenu.c (gray_bitmap_bits): Remove `unsigned' from
......
...@@ -154,11 +154,11 @@ xaw_update_one_widget (instance, widget, val, deep_p) ...@@ -154,11 +154,11 @@ xaw_update_one_widget (instance, widget, val, deep_p)
XtSetValues (widget, al, 1); XtSetValues (widget, al, 1);
} }
XtSetSensitive (widget, val->enabled);
XtSetArg (al[0], XtNlabel, val->value); XtSetArg (al[0], XtNlabel, val->value);
XtSetArg (al[1], XtNsensitive, val->enabled);
/* Force centered button text. Se above. */ /* Force centered button text. Se above. */
XtSetArg (al[2], XtNjustify, XtJustifyCenter); XtSetArg (al[1], XtNjustify, XtJustifyCenter);
XtSetValues (widget, al, 3); XtSetValues (widget, al, 2);
XtRemoveAllCallbacks (widget, XtNcallback); XtRemoveAllCallbacks (widget, XtNcallback);
XtAddCallback (widget, XtNcallback, xaw_generic_callback, instance); XtAddCallback (widget, XtNcallback, xaw_generic_callback, instance);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment