From 1bf6b884b568c0687c9aefd63eeb4a522f31bc3e Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 20 Jul 2011 23:33:38 +0000 Subject: [PATCH] (trunk gtk) #4366 -- wrap register_magnet_link_handler()'s body in #if HAVE_GIO ... #endif --- gtk/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/main.c b/gtk/main.c index ca96ec063..379d9516a 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -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