view: don't leak the buffer
view: various code clean-up

- GTK_SOURCE_IS_VIEW checks also for NULL.

- No need for "!= FALSE" when returning a "guint : 1" struct field. For
setting it is needed, but not for using it.

- Various other things.