]> git.eshelyaron.com Git - emacs.git/commitdiff
(xaw_update_one_widget): Use XtSetSensitive instead
authorGerd Moellmann <gerd@gnu.org>
Wed, 28 Feb 2001 14:55:33 +0000 (14:55 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 28 Feb 2001 14:55:33 +0000 (14:55 +0000)
of setting the value of XtNsensitive.

lwlib/ChangeLog
lwlib/lwlib-Xaw.c

index dfb07292491210cc4ff6e163eb11f2ef5d82cec5..8287fe31db86c8fdf7b6ad9ed6b40f1321303b1a 100644 (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
index 5a1c9d2f268bc1719c22aad0b2f4421b8c95ba06..ea8ee3fb8903fca5cb675f2ac1d50f1a9dd65170 100644 (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);
     }