summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-23 10:10:27 +0200
committerraveit65 <[email protected]>2017-07-23 10:10:27 +0200
commit1ed9943fe4966826c23fb96850496ff29db090d8 (patch)
treee0e9997079fd7b0e3edd4ddd0af73d02e2a3852e
parentf63d8fec1708579689c26e50c9d4da3c70c7fb2b (diff)
downloadeom-1ed9943fe4966826c23fb96850496ff29db090d8.tar.bz2
eom-1ed9943fe4966826c23fb96850496ff29db090d8.tar.xz
don't use deprecated gtk_show_uri
-rw-r--r--src/eom-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom-util.c b/src/eom-util.c
index e0577ff..a20ea34 100644
--- a/src/eom-util.c
+++ b/src/eom-util.c
@@ -53,7 +53,11 @@ eom_util_show_help (const gchar *section, GtkWindow *parent)
if (section)
uri = g_strdup_printf ("help:eom/%s", section);
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (parent, ((uri != NULL) ? uri : "help:eom"),
+#else
gtk_show_uri (NULL, ((uri != NULL) ? uri : "help:eom"),
+#endif
gtk_get_current_event_time (), &error);
g_free (uri);