Mercurial > hg > xemacs-beta
comparison lwlib/xlwradio.c @ 406:b8cc9ab3f761 r21-2-33
Import from CVS: tag r21-2-33
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:17:09 +0200 |
parents | 74fd4e045ea6 |
children | de805c49cfc1 |
comparison
equal
deleted
inserted
replaced
405:0e08f63c74d2 | 406:b8cc9ab3f761 |
---|---|
270 | 270 |
271 /* override label offset */ | 271 /* override label offset */ |
272 | 272 |
273 switch( rw->label.justify ) { | 273 switch( rw->label.justify ) { |
274 case XtJustifyLeft: | 274 case XtJustifyLeft: |
275 rw->label.label_x += bs(rw) + rw->label.internal_width ; | 275 rw->label.label_x += (bs(rw) + rw->label.internal_width) ; |
276 break ; | 276 break ; |
277 case XtJustifyRight: | 277 case XtJustifyRight: |
278 break ; | 278 break ; |
279 case XtJustifyCenter: | 279 case XtJustifyCenter: |
280 default: | 280 default: |
281 rw->label.label_x += (bs(rw) + rw->label.internal_width)/2 ; | 281 rw->label.label_x += (bs(rw) + rw->label.internal_width)/2; |
282 break ; | 282 break ; |
283 } | 283 } |
284 } | 284 } |
285 | 285 |
286 | 286 |
372 newrw->core.height != oldrw->core.height || | 372 newrw->core.height != oldrw->core.height || |
373 newrw->core.border_width != oldrw->core.border_width ) ) | 373 newrw->core.border_width != oldrw->core.border_width ) ) |
374 { | 374 { |
375 RadioSize(newrw, &newrw->core.width, &newrw->core.height) ; | 375 RadioSize(newrw, &newrw->core.width, &newrw->core.height) ; |
376 } | 376 } |
377 | 377 |
378 /* The label set values routine can resize the widget. We need to | |
379 * recalculate if this is true. | |
380 */ | |
381 if (newrw->label.label_x != oldrw->label.label_x) | |
382 { | |
383 RadioResize (new); | |
384 } | |
378 return FALSE ; | 385 return FALSE ; |
379 } | 386 } |
380 | 387 |
381 static XtGeometryResult | 388 static XtGeometryResult |
382 RadioQueryGeometry (Widget w, | 389 RadioQueryGeometry (Widget w, |