Test for Gtk3 before Gtk

As per suggestion of @sevoku