From a31fa77632156eaad561035607119a637c1e0b8b Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 27 Jul 2017 19:45:12 +0200 Subject: don't use deprecated gtk_show_uri --- src/file-share-properties.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/file-share-properties.c b/src/file-share-properties.c index 4631981..dad134b 100644 --- a/src/file-share-properties.c +++ b/src/file-share-properties.c @@ -438,7 +438,11 @@ help_button_clicked (GtkButton *button, GtkWidget *window) { GError *error = NULL; +#if GTK_CHECK_VERSION (3, 22, 0) + if (gtk_show_uri_on_window (GTK_WINDOW (window), "help:mate-user-share", gtk_get_current_event_time (), &error) == FALSE) { +#else if (gtk_show_uri (gtk_widget_get_screen (window), "help:mate-user-share", gtk_get_current_event_time (), &error) == FALSE) { +#endif GtkWidget *dialog; dialog = error_dialog (_("Could not display the help contents."), error->message, GTK_WINDOW (window)); -- cgit v1.2.1