diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-02-28 14:54:54 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-02-28 14:54:54 +0000 |
commit | 2f87cc746e87f21c7af2cd42fdd9b56a76586698 (patch) | |
tree | 5dad0e15431b0c10568881dd84f274f71f7d1eac /lwlib/lwlib-Xm.c | |
parent | ece93c029103f1ec9c0801370afe260b791b008e (diff) | |
download | emacs-2f87cc746e87f21c7af2cd42fdd9b56a76586698.tar.gz |
(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>.
Diffstat (limited to 'lwlib/lwlib-Xm.c')
-rw-r--r-- | lwlib/lwlib-Xm.c | 16 |
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) toggle = XtNameToWidget (widget, cur->value); if (toggle) { - XtVaSetValues (toggle, XmNsensitive, cur->enabled, NULL); + XtSetSensitive (toggle, cur->enabled); if (!val->value && cur->selected) XtVaSetValues (toggle, XmNset, cur->selected, NULL); if (val->value && strcmp (val->value, cur->value)) @@ -655,10 +655,8 @@ update_one_menu_entry (instance, widget, val, deep_p) /* update the sensitivity and userdata */ /* Common to all widget types */ - XtVaSetValues (widget, - XmNsensitive, val->enabled, - XmNuserData, val->call_data, - NULL); + XtSetSensitive (widget, val->enabled); + XtVaSetValues (widget, XmNuserData, val->call_data, NULL); /* update the menu button as a label. */ if (val->this_one_change >= VISIBLE_CHANGE) @@ -858,10 +856,8 @@ xm_update_one_widget (instance, widget, val, deep_p) val->edited = False; /* Common to all widget types */ - XtVaSetValues (widget, - XmNsensitive, val->enabled, - XmNuserData, val->call_data, - NULL); + XtSetSensitive (widget, val->enabled); + XtVaSetValues (widget, XmNuserData, val->call_data, NULL); /* Common to all label like widgets */ if (XtIsSubclass (widget, xmLabelWidgetClass)) @@ -1414,7 +1410,7 @@ xm_create_dialog (instance) Widget widget; Boolean pop_up_p = instance->pop_up_p; char* shell_name = 0; - char* icon_name; + char* icon_name = 0; Boolean text_input_slot = False; Boolean radio_box = False; Boolean list = False; |