summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-26 15:26:10 +0200
committerraveit65 <[email protected]>2017-07-26 15:26:10 +0200
commita96cc1c494032c740b5ebda705992213609fbb18 (patch)
tree5d27f4fad58580ca8153127dbf9b6517fb8a4372
parent1f0b9f4de01dc1924ee713fbbd78710577e3eaf5 (diff)
downloadmate-screensaver-a96cc1c494032c740b5ebda705992213609fbb18.tar.bz2
mate-screensaver-a96cc1c494032c740b5ebda705992213609fbb18.tar.xz
don't use deprecated gtk_show_uri
-rw-r--r--src/mate-screensaver-preferences.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index ad38b36..a3ba973 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -387,7 +387,14 @@ help_display (void)
GError *error;
error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-user-guide/prefs-screensaver",
+ GDK_CURRENT_TIME,
+ &error);
+#else
gtk_show_uri (NULL, "help:mate-user-guide/prefs-screensaver", GDK_CURRENT_TIME, &error);
+#endif
if (error != NULL)
{