If there's a selection, move it. Otherwise move the viewport.
For consistency with GTK+.
This is required for gtkdoc-scangobj. So far it's much like it's been before, the main differences are that source files are in two directories from now on and the build process has two stages.