(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
1 changed files with 5 additions and 0 deletions

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 );