summaryrefslogtreecommitdiff
path: root/mate-screenshot
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-28 11:22:57 +0200
committerraveit65 <[email protected]>2017-07-28 17:05:25 +0200
commit8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1 (patch)
tree870253080b491f5e6da4f782ca8729bb083fd22d /mate-screenshot
parentce334fa530ff5b2d77c15f06a1a63d0532bbc3e2 (diff)
downloadmate-utils-8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1.tar.bz2
mate-utils-8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1.tar.xz
don't use deprecated gtk_show_uri
Diffstat (limited to 'mate-screenshot')
-rw-r--r--mate-screenshot/src/mate-screenshot.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c
index 338337d7..499b582a 100644
--- a/mate-screenshot/src/mate-screenshot.c
+++ b/mate-screenshot/src/mate-screenshot.c
@@ -123,9 +123,16 @@ display_help (GtkWindow *parent)
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (parent,
+ "help:mate-user-guide/goseditmainmenu-53",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_window_get_screen (parent),
"help:mate-user-guide/goseditmainmenu-53",
gtk_get_current_event_time (), &error);
+#endif
if (error)
{