]> git.eshelyaron.com Git - emacs.git/commit
Fix scroll bar portion on Haiku scroll bars
authorPo Lu <luangruo@yahoo.com>
Fri, 11 Mar 2022 01:33:24 +0000 (01:33 +0000)
committerPo Lu <luangruo@yahoo.com>
Fri, 11 Mar 2022 01:33:24 +0000 (01:33 +0000)
commit170cae0e9080697e1efa1678bc1504890bcf4a6e
tree5e36e9a9d025714288dfd8764c4e7cc420d81ab3
parent22dde4e621fb49b9f05d560aee22332ad60bf485
Fix scroll bar portion on Haiku scroll bars

* src/haiku_support.cc (EmacsScrollBar): Set steps to
appropriate value.
(ValueChanged): Test new value against old value before sending
value event.
(MessageReceived): Handle portion and range.
(BView_scroll_bar_update): New argument for portion.
* src/haiku_support.h: Update prototypes.
* src/haikuterm.c (haiku_set_scroll_bar_thumb):
(haiku_set_horizontal_scroll_bar_thumb): New functions.
(haiku_set_horizontal_scroll_bar):
(haiku_set_vertical_scroll_bar): Use those functions to set
scroll bar values.
(haiku_read_socket): Handle new meanings of scroll bar values.
* src/haikuterm.h (struct scroll_bar):
src/haiku_support.cc
src/haiku_support.h
src/haikuterm.c
src/haikuterm.h