aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-21 02:25:11 +0000
committerRichard M. Stallman1996-09-21 02:25:11 +0000
commit1026b4001513477cbfc28f8168f35b0b65ca0d04 (patch)
treea1cdcda0265893aca4b37de4918ac4df8edbe141 /src
parent03218728b5ed5f2171008f4f972bb2956301b5b4 (diff)
downloademacs-1026b4001513477cbfc28f8168f35b0b65ca0d04.tar.gz
emacs-1026b4001513477cbfc28f8168f35b0b65ca0d04.zip
(Qright): New variable.
(syms_of_win32fns): Initialize and staticpro Qright. (x_set_vertical_scroll_bars): Check for left<->right<->none scroll bar changes, and modify the vertical scroll bar type as appropriate. (x_figure_window_size): Use new SET_FRAME_WIDTH macro. (Fx_create_frame): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 03497b7a321..60471c9deb6 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -142,6 +142,7 @@ Lisp_Object Qicon_type;
142Lisp_Object Qicon_name; 142Lisp_Object Qicon_name;
143Lisp_Object Qinternal_border_width; 143Lisp_Object Qinternal_border_width;
144Lisp_Object Qleft; 144Lisp_Object Qleft;
145Lisp_Object Qright;
145Lisp_Object Qmouse_color; 146Lisp_Object Qmouse_color;
146Lisp_Object Qnone; 147Lisp_Object Qnone;
147Lisp_Object Qparent_id; 148Lisp_Object Qparent_id;
@@ -2075,9 +2076,16 @@ x_set_vertical_scroll_bars (f, arg, oldval)
2075 struct frame *f; 2076 struct frame *f;
2076 Lisp_Object arg, oldval; 2077 Lisp_Object arg, oldval;
2077{ 2078{
2078 if (NILP (arg) != ! FRAME_HAS_VERTICAL_SCROLL_BARS (f)) 2079 if ((EQ (arg, Qleft) && FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (f))
2080 || (EQ (arg, Qright) && FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT (f))
2081 || (NILP (arg) && FRAME_HAS_VERTICAL_SCROLL_BARS (f))
2082 || (!NILP (arg) && ! FRAME_HAS_VERTICAL_SCROLL_BARS (f)))
2079 { 2083 {
2080 FRAME_HAS_VERTICAL_SCROLL_BARS (f) = ! NILP (arg); 2084 FRAME_VERTICAL_SCROLL_BAR_TYPE (f) = NILP (arg) ?
2085 vertical_scroll_bar_none :
2086 EQ (Qright, arg)
2087 ? vertical_scroll_bar_right
2088 : vertical_scroll_bar_left;
2081 2089
2082 /* We set this parameter before creating the window for the 2090 /* We set this parameter before creating the window for the
2083 frame, so we can get the geometry right from the start. 2091 frame, so we can get the geometry right from the start.
@@ -2462,7 +2470,7 @@ x_figure_window_size (f, parms)
2462 /* Default values if we fall through. 2470 /* Default values if we fall through.
2463 Actually, if that happens we should get 2471 Actually, if that happens we should get
2464 window manager prompting. */ 2472 window manager prompting. */
2465 f->width = DEFAULT_COLS; 2473 SET_FRAME_WIDTH (f, DEFAULT_COLS);
2466 f->height = DEFAULT_ROWS; 2474 f->height = DEFAULT_ROWS;
2467 /* Window managers expect that if program-specified 2475 /* Window managers expect that if program-specified
2468 positions are not (0,0), they're intentional, not defaults. */ 2476 positions are not (0,0), they're intentional, not defaults. */
@@ -2482,7 +2490,7 @@ x_figure_window_size (f, parms)
2482 if (!EQ (tem1, Qunbound)) 2490 if (!EQ (tem1, Qunbound))
2483 { 2491 {
2484 CHECK_NUMBER (tem1, 0); 2492 CHECK_NUMBER (tem1, 0);
2485 f->width = XINT (tem1); 2493 SET_FRAME_WIDTH (f, XINT (tem1));
2486 } 2494 }
2487 if (!NILP (tem2) && !EQ (tem2, Qunbound)) 2495 if (!NILP (tem2) && !EQ (tem2, Qunbound))
2488 window_prompting |= USSize; 2496 window_prompting |= USSize;
@@ -3673,7 +3681,8 @@ This function is an internal primitive--use `make-frame' instead.")
3673 f->height. */ 3681 f->height. */
3674 width = f->width; 3682 width = f->width;
3675 height = f->height; 3683 height = f->height;
3676 f->height = f->width = 0; 3684 f->height = 0;
3685 SET_FRAME_WIDTH (f, 0);
3677 change_frame_size (f, height, width, 1, 0); 3686 change_frame_size (f, height, width, 1, 0);
3678 3687
3679 /* Tell the server what size and position, etc, we want, 3688 /* Tell the server what size and position, etc, we want,
@@ -4956,6 +4965,8 @@ syms_of_win32fns ()
4956 staticpro (&Qinternal_border_width); 4965 staticpro (&Qinternal_border_width);
4957 Qleft = intern ("left"); 4966 Qleft = intern ("left");
4958 staticpro (&Qleft); 4967 staticpro (&Qleft);
4968 Qright = intern ("right");
4969 staticpro (&Qright);
4959 Qmouse_color = intern ("mouse-color"); 4970 Qmouse_color = intern ("mouse-color");
4960 staticpro (&Qmouse_color); 4971 staticpro (&Qmouse_color);
4961 Qnone = intern ("none"); 4972 Qnone = intern ("none");