summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-02-28 14:55:33 +0000
committerGerd Moellmann <gerd@gnu.org>2001-02-28 14:55:33 +0000
commit2a73ab6066a49d3ea39dddcef861a3fdf6cef992 (patch)
treeffe810fbe597db23f8b6ea662697a71164baefda /lwlib
parent2f87cc746e87f21c7af2cd42fdd9b56a76586698 (diff)
downloademacs-2a73ab6066a49d3ea39dddcef861a3fdf6cef992.tar.gz
(xaw_update_one_widget): Use XtSetSensitive instead
of setting the value of XtNsensitive.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/ChangeLog10
-rw-r--r--lwlib/lwlib-Xaw.c6
2 files changed, 13 insertions, 3 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index dfb07292491..8287fe31db8 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -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
diff --git a/lwlib/lwlib-Xaw.c b/lwlib/lwlib-Xaw.c
index 5a1c9d2f268..ea8ee3fb890 100644
--- a/lwlib/lwlib-Xaw.c
+++ b/lwlib/lwlib-Xaw.c
@@ -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);
}