f38091d96b
Since the function that manages the changes between pages is goToPage, just move the assertions of page >= 0 and page < nPages to that function https://bugzilla.gnome.org/show_bug.cgi?id=707979