Cleanup GTK_CHECK_VERSION and unify code where possible

* Use GtkAllocation is for Gtk+ 2 which was added in v2.18
* Bump gdk-pixbuf required to 2.22 (release 2010)
* GDK_DISPLAY_XDISPLAY | Since always
* gdk_display_get_default | Since 2.22
* gdk_window_get_screen | Since 2.24
* gtk_widget_get_window | Since 2.14