diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-09-15 12:28:30 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-09-15 12:28:30 +0400 |
commit | 0eed03550425dd3e3689a7fa4d0f1a95b2e48254 (patch) | |
tree | 3b213afa4487a1cd9a6813fa471fb6f64f0e928f /src/xfns.c | |
parent | 7f09455e5807f0a2b14a313762f6b547490265d1 (diff) |
Drop VERTICAL_SCROLL_BAR_WIDTH_TRIM. For X, it is zero since 1999,
and it is always zero for others, so I assume that this is an ancient
leftover which nobody will want to change any more.
* xterm.h, w32term.h, nsterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Remove.
(VERTICAL_SCROLL_BAR_INSIDE_WIDTH):
* frame.c (x_set_scroll_bar_width):
* w32fns.c (w32_createscrollbar):
* w32term.c (w32_set_vertical_scroll_bar):
* xfns.c (x_set_scroll_bar_default_width):
* xterm.c (XTflash, x_scroll_bar_create, XTset_vertical_scroll_bar)
(x_scroll_bar_expose): Related users changed.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c index d455b2f21e..38aa5b3bbf 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1468,9 +1468,8 @@ x_set_scroll_bar_default_width (struct frame *f) int minw = 16; #endif /* A minimum width of 14 doesn't look good for toolkit scroll bars. */ - int width = minw + 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM; - FRAME_CONFIG_SCROLL_BAR_COLS (f) = (width + wid - 1) / wid; - FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = width; + FRAME_CONFIG_SCROLL_BAR_COLS (f) = (minw + wid - 1) / wid; + FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = minw; #else /* Make the actual width at least 14 pixels and a multiple of a character width. */ |