From 7a844a76e9b89883f45377b8f00234e318ec49b7 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Wed, 7 Mar 2007 08:13:47 +0000 Subject: [PATCH] (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll bar if its width is smaller than that of Aqua small scroll bar. --- src/ChangeLog | 8 ++++++++ src/macterm.c | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index fb36fff06ce..0296646cf93 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2007-03-07 YAMAMOTO Mitsuharu + + * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers): + Undo 2006-03-06 changes. + + * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll + bar if its width is smaller than that of Aqua small scroll bar. + 2007-03-07 Stefan Monnier * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as diff --git a/src/macterm.c b/src/macterm.c index e0978066b84..3dbee62d2aa 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -5217,7 +5217,11 @@ XTset_vertical_scroll_bar (w, portion, whole, position) #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); -- 2.39.5