diff options
author | raveit65 <[email protected]> | 2017-07-30 15:13:51 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-05 15:02:54 +0200 |
commit | 8498aff15a28ca9f3effd2d8ea048da8cc95f90f (patch) | |
tree | 431cb4f7a8f6c2b04f761a61ae5dcbdbdccdde24 | |
parent | d5af8a09c84c22997ebb84e2a0c949950519ab37 (diff) | |
download | mate-applets-8498aff15a28ca9f3effd2d8ea048da8cc95f90f.tar.bz2 mate-applets-8498aff15a28ca9f3effd2d8ea048da8cc95f90f.tar.xz |
netspeed: don't use deprecated gtk_show_uri
-rw-r--r-- | netspeed/src/netspeed.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |