summaryrefslogtreecommitdiff
path: root/libslab/slab-mate-util.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-02 16:38:18 +0200
committerraveit65 <[email protected]>2017-08-15 10:52:56 +0200
commitc92ca8b67d8209ed1bd33bbe566ea263fc22d597 (patch)
tree9bd12bf9b8ae12beb9bcd97708d73e46af86af6a /libslab/slab-mate-util.c
parentdf9028e9ff4448610dc7626b75a5cf331fb8e106 (diff)
downloadmate-control-center-c92ca8b67d8209ed1bd33bbe566ea263fc22d597.tar.bz2
mate-control-center-c92ca8b67d8209ed1bd33bbe566ea263fc22d597.tar.xz
libslab: don't use deprecated gtk_show_uri
Diffstat (limited to 'libslab/slab-mate-util.c')
-rw-r--r--libslab/slab-mate-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libslab/slab-mate-util.c b/libslab/slab-mate-util.c
index 38d9f6e1..15a61ddb 100644
--- a/libslab/slab-mate-util.c
+++ b/libslab/slab-mate-util.c
@@ -118,7 +118,11 @@ open_desktop_item_help (MateDesktopItem * desktop_item)
help_uri = g_strdup_printf ("help:%s", doc_path);
error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ if (!gtk_show_uri_on_window (NULL, help_uri, gtk_get_current_event_time (), &error))
+#else
if (!gtk_show_uri (libslab_get_current_screen (), help_uri, gtk_get_current_event_time (), &error))
+#endif
{
g_warning ("error opening %s [%s]\n", help_uri, error->message);