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:
parent
1650a4730c
commit
4a1a4ebcc0
1 changed files with 5 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue