From 8498aff15a28ca9f3effd2d8ea048da8cc95f90f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 30 Jul 2017 15:13:51 +0200 Subject: netspeed: don't use deprecated gtk_show_uri --- netspeed/src/netspeed.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'netspeed') diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index b42fa018..f0740ab7 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -730,7 +730,9 @@ timeout_function(MateNetspeedApplet *applet) static void display_help (GtkWidget *dialog, const gchar *section) { +#if !GTK_CHECK_VERSION (3, 22, 0) GdkScreen *screen; +#endif GError *error = NULL; gboolean ret; char *uri; @@ -740,8 +742,15 @@ display_help (GtkWidget *dialog, const gchar *section) else uri = g_strdup ("help:mate-netspeed-applet"); +#if GTK_CHECK_VERSION (3, 22, 0) + ret = gtk_show_uri_on_window (NULL, + uri, + gtk_get_current_event_time (), + &error); +#else screen = gtk_widget_get_screen (dialog); ret = gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error); +#endif g_free (uri); if (ret == FALSE) { -- cgit v1.2.1