Fix compilation for Gtk with the new, stricter inheritance