From 98bd17040267ddd3b96dc8159c3776c00330d463 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 5 Aug 2017 18:11:53 +0200 Subject: mate-about: avoid deprecated gtk_show_uri --- libmate-desktop/mate-aboutdialog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmate-desktop/mate-aboutdialog.c b/libmate-desktop/mate-aboutdialog.c index 6ba325f..ae8ff79 100644 --- a/libmate-desktop/mate-aboutdialog.c +++ b/libmate-desktop/mate-aboutdialog.c @@ -162,12 +162,18 @@ default_url_hook (MateAboutDialog *about, const gchar *uri, gpointer user_data) { +#if GTK_CHECK_VERSION (3, 22, 0) + GError *error = NULL; + + if (!gtk_show_uri_on_window (GTK_WINDOW (about), uri, gtk_get_current_event_time (), &error)) +#else GdkScreen *screen; GError *error = NULL; screen = gtk_widget_get_screen (GTK_WIDGET (about)); if (!gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error)) +#endif { GtkWidget *dialog; -- cgit v1.2.1