Made clicking and dragging on scrollbar seek boxes scroll the widget.
commitbb1941206f8e6c844d68a94251f577f98c6a2bf0
authordwk <dwks@theprogrammingsite.com>
Wed, 18 Jun 2008 03:57:36 +0000 (17 20:57 -0700)
committerdwk <dwks@theprogrammingsite.com>
Wed, 18 Jun 2008 03:57:36 +0000 (17 20:57 -0700)
tree1522bc491e1e48c4a79c342a196ad4714ea748f7
parent8f55517f21d1353e50bd3b379cb2179f9eb1e4f4
Made clicking and dragging on scrollbar seek boxes scroll the widget.

This was achieved by hackishly modifying the widget selection code.
Now, thanks to gui.c::set_scrollbar_sel(), scrollbars are handled
separately.

Note that this scrollbar scrolling is actually quite efficient. The
code itself does not need to walk through any lists or anything, and
only a reposition event is generated.

Fixed the bug which occurred when using the mouse wheel to scroll a
scrollbar seek box out of hover.

Other changes:
- Removed some ancient, commented-out code in listbox.c.
- Removed an unnecessary temporary variable in options.c.
- Updated the links in README.
- Checked off some items on the TODO list.
- Added linecount.sh, which executes `./makewc.sh | tail -n 1`.
.gitignore
README
TODO
linecount.sh [new file with mode: 0755]
src/graphics.h
src/gui.c
src/gui.h
src/loop.c
src/test/options.c
src/widget/listbox.c