Tidying up the drawing code.
Added doc about disabling mouse-wheel scrolling.
Added gtk-doc.m4 to .gitignore.
Fixed a lot of warnings.
Got rid of a few more warnings.