diff options
Diffstat (limited to 'src/terminal-util.c')
-rw-r--r-- | src/terminal-util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal-util.c b/src/terminal-util.c index c8b367c..71bcf5f 100644 --- a/src/terminal-util.c +++ b/src/terminal-util.c @@ -129,6 +129,9 @@ open_url (GtkWindow *parent, guint32 user_time, GError **error) { +#if GTK_CHECK_VERSION (3, 22, 0) + return gtk_show_uri_on_window (parent, uri, user_time, error); +#else GdkScreen *screen; if (parent) @@ -137,6 +140,7 @@ open_url (GtkWindow *parent, screen = gdk_screen_get_default (); return gtk_show_uri (screen, uri, user_time, error); +#endif } void |