comparison lwlib/lwlib-Xm.c @ 400:a86b2b5e0111 r21-2-30

Import from CVS: tag r21-2-30
author cvs
date Mon, 13 Aug 2007 11:14:34 +0200
parents 74fd4e045ea6
children 5a2589c672dc
comparison
equal deleted inserted replaced
399:376370fb5946 400:a86b2b5e0111
1644 { 1644 {
1645 Arg al[20]; 1645 Arg al[20];
1646 int ac = 0; 1646 int ac = 0;
1647 Widget scale = 0; 1647 Widget scale = 0;
1648 widget_value* val = instance->info->val; 1648 widget_value* val = instance->info->val;
1649 1649 #if 0 /* This looks too awful, although more correct. */
1650 if (!val->call_data) 1650 if (!val->call_data)
1651 { 1651 {
1652 XtSetArg (al [ac], XmNsensitive, False); ac++; 1652 XtSetArg (al [ac], XmNsensitive, False); ac++;
1653 } 1653 }
1654 else 1654 else
1655 { 1655 {
1656 XtSetArg (al [ac], XmNsensitive, val->enabled); ac++; 1656 XtSetArg (al [ac], XmNsensitive, val->enabled); ac++;
1657 } 1657 }
1658 #else
1659 XtSetArg (al [ac], XmNsensitive, True); ac++;
1660 #endif
1658 XtSetArg (al [ac], XmNalignment, XmALIGNMENT_BEGINNING); ac++; 1661 XtSetArg (al [ac], XmNalignment, XmALIGNMENT_BEGINNING); ac++;
1659 XtSetArg (al [ac], XmNuserData, val->call_data); ac++; 1662 XtSetArg (al [ac], XmNuserData, val->call_data); ac++;
1660 XtSetArg (al [ac], XmNmappedWhenManaged, FALSE); ac++; 1663 XtSetArg (al [ac], XmNmappedWhenManaged, FALSE); ac++;
1661 XtSetArg (al [ac], XmNorientation, XmHORIZONTAL); ac++; 1664 XtSetArg (al [ac], XmNorientation, XmHORIZONTAL); ac++;
1662 /* The highlight doesn't appear to be dynamically set which makes it 1665 /* The highlight doesn't appear to be dynamically set which makes it