summaryrefslogtreecommitdiff
path: root/exo-open
diff options
context:
space:
mode:
authorSean Davis <smd.seandavis@gmail.com>2017-06-14 22:52:01 -0400
committerSean Davis <smd.seandavis@gmail.com>2017-06-14 22:52:01 -0400
commitfac670d382b0227cb34a522f21f80b983037069b (patch)
treeab33c022b3dec09653b055e803467eaf981f2bb6 /exo-open
parent0e61e730ffe51d8ac77ce1d5c17c62d39145ec3e (diff)
downloadexo-fac670d382b0227cb34a522f21f80b983037069b.tar.gz
Some deprecation replacements
Diffstat (limited to 'exo-open')
-rw-r--r--exo-open/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exo-open/main.c b/exo-open/main.c
index 119b557..8cba8d5 100644
--- a/exo-open/main.c
+++ b/exo-open/main.c
@@ -437,7 +437,11 @@ exo_open_uri (const gchar *uri,
&& (strcmp (scheme, "ftp") == 0 || strcmp (scheme, "ftps") == 0))
retval = exo_open_launch_category ("WebBrowser", uri);
else
+#if GTK_CHECK_VERSION (3, 22, 0)
+ retval = gtk_show_uri_on_window (NULL, uri, 0, error);
+#else
retval = gtk_show_uri (NULL, uri, 0, error);
+#endif
}
g_free (scheme);