Mercurial > emacs
comparison src/widget.c @ 27342:cf4ab4e4be66
(EmacsFrameSetCharSize): Change size of children first
because of problems with main window geometry management under
Lesstif.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 17 Jan 2000 09:13:51 +0000 |
parents | 342027dc53c2 |
children | 09d316feea21 |
comparison
equal
deleted
inserted
replaced
27341:ab22130d8fe3 | 27342:cf4ab4e4be66 |
---|---|
940 int old_top = f->output_data.x->widget->core.y; | 940 int old_top = f->output_data.x->widget->core.y; |
941 | 941 |
942 lw_refigure_widget (f->output_data.x->column_widget, False); | 942 lw_refigure_widget (f->output_data.x->column_widget, False); |
943 update_hints_inhibit = 1; | 943 update_hints_inhibit = 1; |
944 | 944 |
945 ac = 0; | 945 /* Do parents first, otherwise LessTif's geometry |
946 XtSetArg (al[ac], XtNheight, pixel_height); ac++; | 946 management enters an infinite loop (as of 2000-01-15). */ |
947 XtSetArg (al[ac], XtNwidth, pixel_width); ac++; | 947 XtVaSetValues (f->output_data.x->widget, |
948 XtSetValues ((Widget) ew, al, ac); | 948 XtNheight, outer_widget_height + hdelta, |
949 XtNwidth, outer_widget_width + wdelta, NULL); | |
950 XtVaSetValues (f->output_data.x->column_widget, | |
951 XtNheight, column_widget_height + hdelta, | |
952 XtNwidth, column_widget_width + wdelta, NULL); | |
953 XtVaSetValues ((Widget) ew, | |
954 XtNheight, pixel_height, | |
955 XtNwidth, pixel_width, NULL); | |
949 | 956 |
950 ac = 0; | |
951 XtSetArg (al[ac], XtNheight, column_widget_height + hdelta); ac++; | |
952 XtSetArg (al[ac], XtNwidth, column_widget_width + wdelta); ac++; | |
953 XtSetValues (f->output_data.x->column_widget, al, ac); | |
954 | |
955 ac = 0; | |
956 XtSetArg (al[ac], XtNheight, outer_widget_height + hdelta); ac++; | |
957 XtSetArg (al[ac], XtNwidth, outer_widget_width + wdelta); ac++; | |
958 XtSetValues (f->output_data.x->widget, al, ac); | |
959 | |
960 lw_refigure_widget (f->output_data.x->column_widget, True); | 957 lw_refigure_widget (f->output_data.x->column_widget, True); |
961 | 958 |
962 update_hints_inhibit = 0; | 959 update_hints_inhibit = 0; |
963 update_wm_hints (ew); | 960 update_wm_hints (ew); |
964 | 961 |