aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-03-15 13:16:46 -0400
committerChong Yidong2010-03-15 13:16:46 -0400
commit303500aa06fb042fb63a02858bf15bad2fc192f7 (patch)
treed924b0c7fd9ba2656142702ff6d5b61fdaf83fe2
parentddf5d974aa5f8cfa9348339527352ab0ddb5f12d (diff)
downloademacs-303500aa06fb042fb63a02858bf15bad2fc192f7.tar.gz
emacs-303500aa06fb042fb63a02858bf15bad2fc192f7.zip
Put non-GTK X scroll-bars on left.
* xfns.c (Fx_create_frame): * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars on left.
-rw-r--r--etc/NEWS2
-rw-r--r--src/ChangeLog6
-rw-r--r--src/frame.c6
-rw-r--r--src/xfns.c7
4 files changed, 19 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d8061589fb9..ee4ec1370cb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -30,7 +30,7 @@ so we will look at it and add it to the manual.
30 30
31* Changes in Emacs 24.1 31* Changes in Emacs 24.1
32 32
33** The scroll-bar is now on the right on GNU/Linux and UNIX-like systems. 33** GTK scroll-bars are now placed on the right by default.
34Use `set-scroll-bar-mode' to change this. 34Use `set-scroll-bar-mode' to change this.
35 35
36 36
diff --git a/src/ChangeLog b/src/ChangeLog
index da4e336b0ae..e62f3cb8bc3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12010-03-15 Chong Yidong <cyd@stupidchicken.com>
2
3 * xfns.c (Fx_create_frame):
4 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5 on left.
6
12010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change) 72010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2 8
3 * editfns.c (Fformat): Account for string precision when computing 9 * editfns.c (Fformat): Account for string precision when computing
diff --git a/src/frame.c b/src/frame.c
index c779f1c5b65..40930af594c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4584,8 +4584,14 @@ Setting this variable does not affect existing frames, only new ones. */);
4584 DEFVAR_LISP ("default-frame-scroll-bars", &Vdefault_frame_scroll_bars, 4584 DEFVAR_LISP ("default-frame-scroll-bars", &Vdefault_frame_scroll_bars,
4585 doc: /* Default position of scroll bars on this window-system. */); 4585 doc: /* Default position of scroll bars on this window-system. */);
4586#ifdef HAVE_WINDOW_SYSTEM 4586#ifdef HAVE_WINDOW_SYSTEM
4587#if defined(HAVE_NTGUI) || defined(NS_IMPL_COCOA) || (defined(USE_GTK) && defined(USE_TOOLKIT_SCROLL_BARS))
4588 /* MS-Windows, Mac OS X, and GTK have scroll bars on the right by
4589 default. */
4587 Vdefault_frame_scroll_bars = Qright; 4590 Vdefault_frame_scroll_bars = Qright;
4588#else 4591#else
4592 Vdefault_frame_scroll_bars = Qleft;
4593#endif
4594#else
4589 Vdefault_frame_scroll_bars = Qnil; 4595 Vdefault_frame_scroll_bars = Qnil;
4590#endif 4596#endif
4591 4597
diff --git a/src/xfns.c b/src/xfns.c
index 84d0d622200..45bea1e4ec2 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3376,7 +3376,12 @@ This function is an internal primitive--use `make-frame' instead. */)
3376#endif 3376#endif
3377 "internalBorderWidth", "internalBorderWidth", 3377 "internalBorderWidth", "internalBorderWidth",
3378 RES_TYPE_NUMBER); 3378 RES_TYPE_NUMBER);
3379 x_default_parameter (f, parms, Qvertical_scroll_bars, Qright, 3379 x_default_parameter (f, parms, Qvertical_scroll_bars,
3380#if defined(USE_GTK) && defined(USE_TOOLKIT_SCROLL_BARS)
3381 Qright,
3382#else
3383 Qleft,
3384#endif
3380 "verticalScrollBars", "ScrollBars", 3385 "verticalScrollBars", "ScrollBars",
3381 RES_TYPE_SYMBOL); 3386 RES_TYPE_SYMBOL);
3382 3387