aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorPaul Reilly1994-10-02 13:13:17 +0000
committerPaul Reilly1994-10-02 13:13:17 +0000
commit69524b98c04f34b7c94aad971cef4fd7a3d4ef3d (patch)
tree5383105db7469fee17ca69ca9b6e628f3a1955ae /src/widget.c
parentb7720e058596336a62002a27a851fe82e031bbfc (diff)
downloademacs-69524b98c04f34b7c94aad971cef4fd7a3d4ef3d.tar.gz
emacs-69524b98c04f34b7c94aad971cef4fd7a3d4ef3d.zip
(EmacsFrameSetCharSize): Use lw_refigure_widget() for widget set
independence.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/widget.c b/src/widget.c
index fd213aa337c..b2da437f842 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
36#include <X11/ObjectP.h> 36#include <X11/ObjectP.h>
37#include <X11/Shell.h> 37#include <X11/Shell.h>
38#include <X11/ShellP.h> 38#include <X11/ShellP.h>
39#include "../lwlib/lwlib.h"
39 40
40#define max(a, b) ((a) > (b) ? (a) : (b)) 41#define max(a, b) ((a) > (b) ? (a) : (b))
41 42
@@ -901,8 +902,7 @@ EmacsFrameSetCharSize (widget, columns, rows)
901 int old_left = f->display.x->widget->core.x; 902 int old_left = f->display.x->widget->core.x;
902 int old_top = f->display.x->widget->core.y; 903 int old_top = f->display.x->widget->core.y;
903 904
904 XawPanedSetRefigureMode (f->display.x->column_widget, False); 905 lw_refigure_widget (f->display.x->column_widget, False);
905
906 ac = 0; 906 ac = 0;
907 XtSetArg (al[ac], XtNheight, pixel_height); ac++; 907 XtSetArg (al[ac], XtNheight, pixel_height); ac++;
908 XtSetArg (al[ac], XtNwidth, pixel_width); ac++; 908 XtSetArg (al[ac], XtNwidth, pixel_width); ac++;
@@ -912,8 +912,7 @@ EmacsFrameSetCharSize (widget, columns, rows)
912 XtSetArg (al[ac], XtNheight, column_widget_height + hdelta); ac++; 912 XtSetArg (al[ac], XtNheight, column_widget_height + hdelta); ac++;
913 XtSetArg (al[ac], XtNwidth, pixel_width); ac++; 913 XtSetArg (al[ac], XtNwidth, pixel_width); ac++;
914 XtSetValues (f->display.x->column_widget, al, ac); 914 XtSetValues (f->display.x->column_widget, al, ac);
915 915 lw_refigure_widget (f->display.x->column_widget, True);
916 XawPanedSetRefigureMode (f->display.x->column_widget, True);
917 916
918 /* These seem to get clobbered. I don't know why. - rms. */ 917 /* These seem to get clobbered. I don't know why. - rms. */
919 f->display.x->widget->core.x = old_left; 918 f->display.x->widget->core.x = old_left;