comparison src/widget.c @ 6304:e6b7a921ccab

(EmacsFrameSetCharSize): Call XawPanedSetRefigureMode. Call XtSetValues not XtVaSetValues.
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Fri, 11 Mar 1994 10:33:08 +0000
parents 044dcf8b9066
children 888f7465fd94
comparison
equal deleted inserted replaced
6303:1571be153f56 6304:e6b7a921ccab
897 /* Recompute the entire geometry management. */ 897 /* Recompute the entire geometry management. */
898 if (ew->core.width != pixel_width || ew->core.height != pixel_height) 898 if (ew->core.width != pixel_width || ew->core.height != pixel_height)
899 { 899 {
900 int hdelta = pixel_height - ew->core.height; 900 int hdelta = pixel_height - ew->core.height;
901 int column_widget_height = f->display.x->column_widget->core.height; 901 int column_widget_height = f->display.x->column_widget->core.height;
902 Arg al[2];
903 int ac = 0;
904
905 XawPanedSetRefigureMode (f->display.x->column_widget, False);
906
907 XtSetArg (al[ac], XtNheight, pixel_height); ac++;
908 XtSetArg (al[ac], XtNwidth, pixel_width); ac++;
909 XtSetValues ((Widget) ew, al, ac);
910 #if 0
902 XtVaSetValues ((Widget) ew, 911 XtVaSetValues ((Widget) ew,
903 XtNheight, pixel_height, 912 XtNheight, pixel_height,
904 XtNwidth, pixel_width, 913 XtNwidth, pixel_width,
905 0); 914 0);
906 915 #endif
907 XtVaSetValues (f->display.x->column_widget, 916 XtVaSetValues (f->display.x->column_widget,
908 XtNwidth, pixel_width, 917 XtNwidth, pixel_width,
909 XtNheight, column_widget_height + hdelta, 918 XtNheight, column_widget_height + hdelta,
910 0); 919 0);
920 XawPanedSetRefigureMode (f->display.x->column_widget, True);
911 } 921 }
912 922
913 /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to 923 /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to
914 receive in the ConfigureNotify event; if we get what we asked 924 receive in the ConfigureNotify event; if we get what we asked
915 for, then the event won't cause the screen to become garbaged, so 925 for, then the event won't cause the screen to become garbaged, so