Fix scroll bar handling for non-toolkit builds.
commit4a75c94d14f7a3c50014d1cc12ee519eb955c1ed
authorMartin Rudalics <rudalics@gmx.at>
Mon, 4 Aug 2014 16:47:27 +0000 (4 18:47 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 4 Aug 2014 16:47:27 +0000 (4 18:47 +0200)
tree73a26f58dc3568e35872b33dcd88aa411ef9c56a
parent44a651f0f2e1668bdbbacca3bf5d405c34e67ff2
Fix scroll bar handling for non-toolkit builds.

* frame.h (FRAME_HAS_HORIZONTAL_SCROLL_BARS): Condition
correctly according to toolkit used.
* frame.c (make_initial_frame, make_terminal_frame)
(x_set_horizontal_scroll_bars, x_set_scroll_bar_height)
(Vdefault_frame_horizontal_scroll_bars): Correctly condition
assignments according to presence of toolkit scrollbars.
* window.h (WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Condition
correctly according to toolkit used.
* window.c (set_window_scroll_bars): Set horizontal scroll bar
only if toolkit supports it.
* w32term.c (w32_redeem_scroll_bar): Always redeem scroll bar if
present.
* xterm.c (x_scroll_bar_create): Initialize horizontal slot for
non-toolkit builds.
(XTredeem_scroll_bar): Always redeem scroll bar if present.
src/ChangeLog
src/frame.c
src/frame.h
src/w32term.c
src/window.c
src/window.h
src/xterm.c