changeset 76371:fc4f77227fc8

(XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll bar if its width is smaller than that of Aqua small scroll bar.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 07 Mar 2007 08:13:38 +0000
parents 14f1f51f8e2b
children bab2ae813694
files src/macterm.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Wed Mar 07 08:13:28 2007 +0000
+++ b/src/macterm.c	Wed Mar 07 08:13:38 2007 +0000
@@ -5217,7 +5217,11 @@
 #ifdef USE_TOOLKIT_SCROLL_BARS
   if (NILP (bar->track_top))
     {
-      if (sb_width >= disp_height)
+      if (sb_width >= disp_height
+#ifdef MAC_OSX
+	  || sb_width < MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH
+#endif
+	  )
 	{
 	  XSETINT (bar->track_top, 0);
 	  XSETINT (bar->track_height, 0);