diff options
author | raveit65 <[email protected]> | 2017-08-03 21:42:33 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-03 21:42:33 +0200 |
commit | e6fe1068bedb6695a56c58795f8ca213c3b0470d (patch) | |
tree | 162b731b691f44945a41d96970f4793f45e6be06 /src/terminal-util.c | |
parent | 3f374d57879f6217acebe4e37b0c61bc9991eb7a (diff) | |
download | mate-terminal-e6fe1068bedb6695a56c58795f8ca213c3b0470d.tar.bz2 mate-terminal-e6fe1068bedb6695a56c58795f8ca213c3b0470d.tar.xz |
terminal-util: avoid deprecated gtk_show_uri
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 |