]> git.eshelyaron.com Git - emacs.git/commit
Prevent crashes on event for removed scroll bar on Haiku
authorPo Lu <luangruo@yahoo.com>
Sat, 26 Feb 2022 07:24:12 +0000 (07:24 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 26 Feb 2022 07:24:12 +0000 (07:24 +0000)
commite1757c00caa342e698216fba0098dc9f42fc4777
treefb1d0aada3735f6a30eec84f14f1aa5700dfda06
parent3e9c36e7999356d5d14bd587ce74083c5a2c6512
Prevent crashes on event for removed scroll bar on Haiku

* src/haiku_support.cc (class EmacsScrollBar): Remove field
`scroll_bar'.
(ValueChanged, MouseDown, MouseUp, BScrollBar_make_for_view):
Adjust for changes.

* src/haiku_support.h (struct haiku_scroll_bar_value_event)
(struct haiku_scroll_bar_drag_event)
(struct haiku_scroll_bar_part_event): New field `window'.

* src/haikuterm.c (haiku_scroll_bar_from_widget): New function.
(haiku_read_socket): Adjust for changes in scroll bar event
structures.
src/haiku_support.cc
src/haiku_support.h
src/haikuterm.c