GDK_KEY_* was introduced in Gtk+ 2.22
Drop support for Glib < 2.36
Use GDK_WINDOW_XID to get xid for both Gtk+ versions
Replace GtkObject with GObject also for gtk2