Fix ambiguous function when depricated gtk functions are enabled