aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-28 14:54:54 +0000
committerGerd Moellmann2001-02-28 14:54:54 +0000
commit2f87cc746e87f21c7af2cd42fdd9b56a76586698 (patch)
tree5dad0e15431b0c10568881dd84f274f71f7d1eac
parentece93c029103f1ec9c0801370afe260b791b008e (diff)
downloademacs-2f87cc746e87f21c7af2cd42fdd9b56a76586698.tar.gz
emacs-2f87cc746e87f21c7af2cd42fdd9b56a76586698.zip
(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>.
-rw-r--r--lwlib/lwlib-Xm.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 2cbcba4c1a0..16c8a947a4a 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -447,7 +447,7 @@ xm_update_radiobox (instance, widget, val)
447 toggle = XtNameToWidget (widget, cur->value); 447 toggle = XtNameToWidget (widget, cur->value);
448 if (toggle) 448 if (toggle)
449 { 449 {
450 XtVaSetValues (toggle, XmNsensitive, cur->enabled, NULL); 450 XtSetSensitive (toggle, cur->enabled);
451 if (!val->value && cur->selected) 451 if (!val->value && cur->selected)
452 XtVaSetValues (toggle, XmNset, cur->selected, NULL); 452 XtVaSetValues (toggle, XmNset, cur->selected, NULL);
453 if (val->value && strcmp (val->value, cur->value)) 453 if (val->value && strcmp (val->value, cur->value))
@@ -655,10 +655,8 @@ update_one_menu_entry (instance, widget, val, deep_p)
655 655
656 /* update the sensitivity and userdata */ 656 /* update the sensitivity and userdata */
657 /* Common to all widget types */ 657 /* Common to all widget types */
658 XtVaSetValues (widget, 658 XtSetSensitive (widget, val->enabled);
659 XmNsensitive, val->enabled, 659 XtVaSetValues (widget, XmNuserData, val->call_data, NULL);
660 XmNuserData, val->call_data,
661 NULL);
662 660
663 /* update the menu button as a label. */ 661 /* update the menu button as a label. */
664 if (val->this_one_change >= VISIBLE_CHANGE) 662 if (val->this_one_change >= VISIBLE_CHANGE)
@@ -858,10 +856,8 @@ xm_update_one_widget (instance, widget, val, deep_p)
858 val->edited = False; 856 val->edited = False;
859 857
860 /* Common to all widget types */ 858 /* Common to all widget types */
861 XtVaSetValues (widget, 859 XtSetSensitive (widget, val->enabled);
862 XmNsensitive, val->enabled, 860 XtVaSetValues (widget, XmNuserData, val->call_data, NULL);
863 XmNuserData, val->call_data,
864 NULL);
865 861
866 /* Common to all label like widgets */ 862 /* Common to all label like widgets */
867 if (XtIsSubclass (widget, xmLabelWidgetClass)) 863 if (XtIsSubclass (widget, xmLabelWidgetClass))
@@ -1414,7 +1410,7 @@ xm_create_dialog (instance)
1414 Widget widget; 1410 Widget widget;
1415 Boolean pop_up_p = instance->pop_up_p; 1411 Boolean pop_up_p = instance->pop_up_p;
1416 char* shell_name = 0; 1412 char* shell_name = 0;
1417 char* icon_name; 1413 char* icon_name = 0;
1418 Boolean text_input_slot = False; 1414 Boolean text_input_slot = False;
1419 Boolean radio_box = False; 1415 Boolean radio_box = False;
1420 Boolean list = False; 1416 Boolean list = False;