1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 21:26:53 +00:00

(trunk gtk) gtk_open_uri(): use gtk_show_uri() as the default implementation for GTK+ > 2.14.0.

gtk_show_uri() was added in 2.14.0
This commit is contained in:
Jordan Lee 2011-03-25 06:40:46 +00:00
parent 1650a4730c
commit 4a1a4ebcc0

View file

@ -455,6 +455,11 @@ gtr_open_uri( const char * uri )
{
gboolean opened = FALSE;
#if GTK_CHECK_VERSION(2,14,0)
if( !opened )
opened = gtk_show_uri( NULL, uri, GDK_CURRENT_TIME, NULL );
#endif
#ifdef HAVE_GIO
if( !opened )
opened = g_app_info_launch_default_for_uri( uri, NULL, NULL );