Lines Matching refs:newtw

2880   TextWidget newtw = (TextWidget) new;
2882 Boolean display_caret = newtw->text.display_caret;
2885 newtw->text.display_caret = oldtw->text.display_caret;
2886 _XawTextPrepareToUpdate(newtw);
2887 newtw->text.display_caret = display_caret;
2889 if (oldtw->text.r_margin.left != newtw->text.r_margin.left) {
2890 newtw->text.margin.left = newtw->text.r_margin.left;
2891 if (newtw->text.vbar != NULL)
2892 newtw->text.margin.left += newtw->text.vbar->core.width +
2893 newtw->text.vbar->core.border_width;
2897 if (oldtw->text.scroll_vert != newtw->text.scroll_vert) {
2898 if (newtw->text.scroll_vert == XawtextScrollNever)
2899 DestroyVScrollBar(newtw);
2900 else if (newtw->text.scroll_vert == XawtextScrollAlways)
2901 CreateVScrollBar(newtw);
2905 if (oldtw->text.r_margin.bottom != newtw->text.r_margin.bottom) {
2906 newtw->text.margin.bottom = newtw->text.r_margin.bottom;
2907 if (newtw->text.hbar != NULL)
2908 newtw->text.margin.bottom += newtw->text.hbar->core.height +
2909 newtw->text.hbar->core.border_width;
2913 if (oldtw->text.scroll_horiz != newtw->text.scroll_horiz) {
2914 if (newtw->text.scroll_horiz == XawtextScrollNever)
2915 DestroyHScrollBar(newtw);
2916 else if (newtw->text.scroll_horiz == XawtextScrollAlways)
2917 CreateHScrollBar(newtw);
2921 if ( oldtw->text.source != newtw->text.source )
2922 XawTextSetSource( (Widget) newtw, newtw->text.source, newtw->text.lt.top);
2924 newtw->text.redisplay_needed = False;
2925 XtSetValues( (Widget)newtw->text.source, args, *num_args );
2926 XtSetValues( (Widget)newtw->text.sink, args, *num_args );
2928 if ( oldtw->text.wrap != newtw->text.wrap ||
2929 oldtw->text.lt.top != newtw->text.lt.top ||
2930 oldtw->text.r_margin.right != newtw->text.r_margin.right ||
2931 oldtw->text.r_margin.top != newtw->text.r_margin.top ||
2932 oldtw->text.sink != newtw->text.sink ||
2933 newtw->text.redisplay_needed )
2935 _XawTextBuildLineTable(newtw, newtw->text.lt.top, TRUE);
2939 if (oldtw->text.insertPos != newtw->text.insertPos) {
2940 newtw->text.showposition = TRUE;
2944 _XawTextExecuteUpdate(newtw);
2946 _XawTextSetScrollBars(newtw);