comparison lwlib/xlwradio.c @ 3055:6c9e392b4307

[xemacs-hg @ 2005-11-10 15:47:33 by crestani] Fix C++ build: new->new_.
author crestani
date Thu, 10 Nov 2005 15:47:33 +0000
parents 04bc9d2f42c7
children 4c038e89d563
comparison
equal deleted inserted replaced
3054:f4a678ca6f3d 3055:6c9e392b4307
216 216
217 217
218 /*ARGSUSED*/ 218 /*ARGSUSED*/
219 static void 219 static void
220 RadioInit (Widget request, 220 RadioInit (Widget request,
221 Widget new, 221 Widget new_,
222 ArgList UNUSED (args), 222 ArgList UNUSED (args),
223 Cardinal *UNUSED (num_args)) 223 Cardinal *UNUSED (num_args))
224 { 224 {
225 RadioWidget rw = (RadioWidget) new; 225 RadioWidget rw = (RadioWidget) new_;
226 RadioWidget rw_req = (RadioWidget) request; 226 RadioWidget rw_req = (RadioWidget) request;
227 Dimension w,h ; 227 Dimension w,h ;
228 228
229 /* Select initial size for the widget */ 229 /* Select initial size for the widget */
230 if( rw_req->core.width == 0 || rw_req->core.height == 0 ) 230 if( rw_req->core.width == 0 || rw_req->core.height == 0 )
232 RadioSize(rw, &w,&h) ; 232 RadioSize(rw, &w,&h) ;
233 if( rw_req->core.width == 0 ) 233 if( rw_req->core.width == 0 )
234 rw->core.width = w ; 234 rw->core.width = w ;
235 if( rw_req->core.height == 0 ) 235 if( rw_req->core.height == 0 )
236 rw->core.height = h ; 236 rw->core.height = h ;
237 rw->core.widget_class->core_class.resize(new) ; 237 rw->core.widget_class->core_class.resize(new_) ;
238 } 238 }
239 } 239 }
240 240
241 /* Function Name: RadioDestroy 241 /* Function Name: RadioDestroy
242 * Description: Destroy Callback for radio widget. 242 * Description: Destroy Callback for radio widget.
343 343
344 /* ARGSUSED */ 344 /* ARGSUSED */
345 static Boolean 345 static Boolean
346 RadioSetValues (Widget current, 346 RadioSetValues (Widget current,
347 Widget UNUSED (request), 347 Widget UNUSED (request),
348 Widget new, 348 Widget new_,
349 ArgList UNUSED (args), 349 ArgList UNUSED (args),
350 Cardinal *UNUSED (num_args)) 350 Cardinal *UNUSED (num_args))
351 { 351 {
352 RadioWidget oldrw = (RadioWidget) current; 352 RadioWidget oldrw = (RadioWidget) current;
353 RadioWidget newrw = (RadioWidget) new; 353 RadioWidget newrw = (RadioWidget) new_;
354 354
355 /* Need to find out if the size of the widget changed. Set new size 355 /* Need to find out if the size of the widget changed. Set new size
356 * if it did and resize is permitted. One way to determine of the 356 * if it did and resize is permitted. One way to determine of the
357 * widget changed size would be to scan the args list. Another way 357 * widget changed size would be to scan the args list. Another way
358 * is to compare the old and new widgets and see if any of several 358 * is to compare the old and new widgets and see if any of several
371 /* The label set values routine can resize the widget. We need to 371 /* The label set values routine can resize the widget. We need to
372 * recalculate if this is true. 372 * recalculate if this is true.
373 */ 373 */
374 if (newrw->label.label_x != oldrw->label.label_x) 374 if (newrw->label.label_x != oldrw->label.label_x)
375 { 375 {
376 RadioResize (new); 376 RadioResize (new_);
377 } 377 }
378 return FALSE ; 378 return FALSE ;
379 } 379 }
380 380
381 static XtGeometryResult 381 static XtGeometryResult