Fix GTK+ deprecation warnings.