Mercurial > hg > xemacs-beta
comparison lwlib/lwlib-Xlw.c @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | bcdc7deadc19 |
comparison
equal
deleted
inserted
replaced
1:c0c6a60d29db | 2:ac2d302a0011 |
---|---|
227 { | 227 { |
228 Arg al[20]; | 228 Arg al[20]; |
229 int ac = 0; | 229 int ac = 0; |
230 Widget scrollbar; | 230 Widget scrollbar; |
231 | 231 |
232 XtSetArg (al[ac], XmNminimum, 1); ac++; | 232 XtSetArg (al[ac], (String) XmNminimum, 1); ac++; |
233 XtSetArg (al[ac], XmNmaximum, INT_MAX); ac++; | 233 XtSetArg (al[ac], (String) XmNmaximum, INT_MAX); ac++; |
234 XtSetArg (al[ac], XmNincrement, 1); ac++; | 234 XtSetArg (al[ac], (String) XmNincrement, 1); ac++; |
235 XtSetArg (al[ac], XmNpageIncrement, 1); ac++; | 235 XtSetArg (al[ac], (String) XmNpageIncrement, 1); ac++; |
236 if (vertical) | 236 if (vertical) |
237 { | 237 { |
238 XtSetArg (al[ac], XmNorientation, XmVERTICAL); ac++; | 238 XtSetArg (al[ac], (String) XmNorientation, XmVERTICAL); ac++; |
239 } | 239 } |
240 else | 240 else |
241 { | 241 { |
242 XtSetArg (al[ac], XmNorientation, XmHORIZONTAL); ac++; | 242 XtSetArg (al[ac], (String) XmNorientation, XmHORIZONTAL); ac++; |
243 } | 243 } |
244 | 244 |
245 scrollbar = | 245 scrollbar = |
246 XtCreateWidget (instance->info->name, xlwScrollBarWidgetClass, instance->parent, al, ac); | 246 XtCreateWidget (instance->info->name, xlwScrollBarWidgetClass, instance->parent, al, ac); |
247 | 247 |