]> granicus.if.org Git - transmission/commitdiff
Don't display uTP checkbox in non-uTP builds (gtk).
authorJuliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Fri, 18 Feb 2011 22:22:02 +0000 (22:22 +0000)
committerJuliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Fri, 18 Feb 2011 22:22:02 +0000 (22:22 +0000)
Reported by Rolcol.

gtk/tr-prefs.c

index 85b7b42e4fad875c8db5da780777753d2a8825e9..670fd4a0da477016807e14b458026bc506748816 100644 (file)
@@ -1214,6 +1214,7 @@ networkPage( GObject * core )
     w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, 3000, 5 );
     hig_workarea_add_row( t, &row, _( "Maximum peers _overall:" ), w, NULL );
 
+#ifdef WITH_UTP
     hig_workarea_add_section_divider( t, &row );
     hig_workarea_add_section_title( t, &row, _( "Options" ) );
 
@@ -1222,6 +1223,7 @@ networkPage( GObject * core )
     s = _( "uTP is a tool for reducing network congestion." );
     gtr_widget_set_tooltip_text( w, s );
     hig_workarea_add_wide_control( t, &row, w );
+#endif
 
     w = gtk_button_new_with_mnemonic( _( "Edit GNOME Proxy Settings" ) );
     g_signal_connect( w, "clicked", G_CALLBACK( onGNOMEClicked ), data );