diff options
| author | Fred Pierresteguy | 1994-01-28 17:34:46 +0000 |
|---|---|---|
| committer | Fred Pierresteguy | 1994-01-28 17:34:46 +0000 |
| commit | 80fd1fe20c26a026a8d1dfbbb341413e522f76f4 (patch) | |
| tree | b7d79cbb183dd8880b171844d5b9931be7674cf6 /src | |
| parent | 5c94b90b1081409b4cce321f37d9e05931ddb07d (diff) | |
| download | emacs-80fd1fe20c26a026a8d1dfbbb341413e522f76f4.tar.gz emacs-80fd1fe20c26a026a8d1dfbbb341413e522f76f4.zip | |
(x_set_window_size): Add USE_X_TOOLKIT conditional. Call EmacsFrameSetCharSize and return.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index 7623018ee70..e471311da5a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4521,6 +4521,13 @@ x_set_window_size (f, cols, rows) | |||
| 4521 | int pixelwidth, pixelheight; | 4521 | int pixelwidth, pixelheight; |
| 4522 | int mask; | 4522 | int mask; |
| 4523 | 4523 | ||
| 4524 | #ifdef USE_X_TOOLKIT | ||
| 4525 | BLOCK_INPUT; | ||
| 4526 | EmacsFrameSetCharSize (f->display.x->edit_widget, cols, rows); | ||
| 4527 | UNBLOCK_INPUT; | ||
| 4528 | |||
| 4529 | #else /* not USE_X_TOOLKIT */ | ||
| 4530 | |||
| 4524 | BLOCK_INPUT; | 4531 | BLOCK_INPUT; |
| 4525 | 4532 | ||
| 4526 | check_frame_size (f, &rows, &cols); | 4533 | check_frame_size (f, &rows, &cols); |
| @@ -4531,11 +4538,6 @@ x_set_window_size (f, cols, rows) | |||
| 4531 | pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols); | 4538 | pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols); |
| 4532 | pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows); | 4539 | pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows); |
| 4533 | 4540 | ||
| 4534 | #if 0 | ||
| 4535 | #ifdef USE_X_TOOLKIT | ||
| 4536 | EmacsFrameSetCharSize (f->display.x->edit_widget, cols, rows); | ||
| 4537 | #endif /* USE_X_TOOLKIT */ | ||
| 4538 | #endif | ||
| 4539 | #ifdef HAVE_X11 | 4541 | #ifdef HAVE_X11 |
| 4540 | x_wm_set_size_hint (f, 0, 0, 0); | 4542 | x_wm_set_size_hint (f, 0, 0, 0); |
| 4541 | #endif /* ! defined (HAVE_X11) */ | 4543 | #endif /* ! defined (HAVE_X11) */ |
| @@ -4563,6 +4565,7 @@ x_set_window_size (f, cols, rows) | |||
| 4563 | 4565 | ||
| 4564 | XFlushQueue (); | 4566 | XFlushQueue (); |
| 4565 | UNBLOCK_INPUT; | 4567 | UNBLOCK_INPUT; |
| 4568 | #endif /* not USE_X_TOOLKIT */ | ||
| 4566 | } | 4569 | } |
| 4567 | 4570 | ||
| 4568 | #ifndef HAVE_X11 | 4571 | #ifndef HAVE_X11 |