mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk gtk) #4366 -- wrap register_magnet_link_handler()'s body in #if HAVE_GIO ... #endif
This commit is contained in:
parent
e495a579d3
commit
1bf6b884b5
1 changed files with 2 additions and 0 deletions
|
@ -357,6 +357,7 @@ static gboolean update_model( gpointer gdata );
|
|||
static void
|
||||
register_magnet_link_handler( void )
|
||||
{
|
||||
#ifdef HAVE_GIO
|
||||
GAppInfo * app_info = g_app_info_get_default_for_uri_scheme( "magnet" );
|
||||
if( app_info == NULL )
|
||||
{
|
||||
|
@ -370,6 +371,7 @@ register_magnet_link_handler( void )
|
|||
g_clear_error( &error );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue