terminal-util: avoid deprecated gtk_show_uri

master-1.22
raveit65 2017-08-03 21:42:33 +02:00
parent 3f374d5787
commit e6fe1068be
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,9 @@ open_url (GtkWindow *parent,
guint32 user_time, guint32 user_time,
GError **error) GError **error)
{ {
#if GTK_CHECK_VERSION (3, 22, 0)
return gtk_show_uri_on_window (parent, uri, user_time, error);
#else
GdkScreen *screen; GdkScreen *screen;
if (parent) if (parent)
@ -137,6 +140,7 @@ open_url (GtkWindow *parent,
screen = gdk_screen_get_default (); screen = gdk_screen_get_default ();
return gtk_show_uri (screen, uri, user_time, error); return gtk_show_uri (screen, uri, user_time, error);
#endif
} }
void void