Lines Matching refs:newtw

2452   TextWidget newtw = (TextWidget) new;
2454 Boolean display_caret = newtw->text.display_caret;
2461 if (newtw->text.options != oldtw->text.options)
2462 XawTextChangeOptions((Widget) newtw, newtw->text.options);
2466 newtw->text.display_caret = oldtw->text.display_caret;
2467 _XawTextPrepareToUpdate(newtw);
2468 newtw->text.display_caret = display_caret;
2470 if (oldtw->text.r_margin.left != newtw->text.r_margin.left) {
2471 newtw->text.margin.left = newtw->text.r_margin.left;
2472 if (newtw->text.vbar != NULL)
2473 newtw->text.margin.left += newtw->text.vbar->core.width +
2474 newtw->text.vbar->core.border_width;
2478 if (oldtw->text.scroll_vert != newtw->text.scroll_vert) {
2479 if (newtw->text.scroll_vert == XawtextScrollNever)
2480 DestroyVScrollBar(newtw);
2481 else if (newtw->text.scroll_vert == XawtextScrollAlways)
2482 CreateVScrollBar(newtw);
2486 if (oldtw->text.r_margin.bottom != newtw->text.r_margin.bottom) {
2487 newtw->text.margin.bottom = newtw->text.r_margin.bottom;
2488 if (newtw->text.hbar != NULL)
2489 newtw->text.margin.bottom += newtw->text.hbar->core.height +
2490 newtw->text.hbar->core.border_width;
2494 if (oldtw->text.scroll_horiz != newtw->text.scroll_horiz) {
2495 if (newtw->text.scroll_horiz == XawtextScrollNever)
2496 DestroyHScrollBar(newtw);
2497 else if (newtw->text.scroll_horiz == XawtextScrollAlways)
2498 CreateHScrollBar(newtw);
2502 if ( oldtw->text.source != newtw->text.source )
2503 XawTextSetSource( (Widget) newtw, newtw->text.source, newtw->text.lt.top);
2505 newtw->text.redisplay_needed = False;
2506 XtSetValues( (Widget)newtw->text.source, args, *num_args );
2507 XtSetValues( (Widget)newtw->text.sink, args, *num_args );
2509 if ( oldtw->text.wrap != newtw->text.wrap ||
2510 oldtw->text.lt.top != newtw->text.lt.top ||
2511 oldtw->text.r_margin.right != newtw->text.r_margin.right ||
2512 oldtw->text.r_margin.top != newtw->text.r_margin.top ||
2513 oldtw->text.sink != newtw->text.sink ||
2514 newtw->text.redisplay_needed )
2516 _XawTextBuildLineTable(newtw, newtw->text.lt.top, TRUE);
2520 if (oldtw->text.insertPos != newtw->text.insertPos)
2521 newtw->text.showposition = TRUE;
2523 _XawTextExecuteUpdate(newtw);
2525 _XawTextSetScrollBars(newtw);