mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(gtk) tweak the prefs dialog a little bit again.
This commit is contained in:
parent
ba6dcab503
commit
1950b87a6c
1 changed files with 10 additions and 10 deletions
|
@ -279,8 +279,8 @@ updateBlocklistText( GtkWidget * w, TrCore * core )
|
||||||
const int n = tr_blocklistGetRuleCount( tr_core_handle( core ) );
|
const int n = tr_blocklistGetRuleCount( tr_core_handle( core ) );
|
||||||
char buf[512];
|
char buf[512];
|
||||||
g_snprintf( buf, sizeof( buf ),
|
g_snprintf( buf, sizeof( buf ),
|
||||||
ngettext( "Don't talk to the %'d _blocklisted peer",
|
ngettext( "Ignore the %'d _blocklisted peer",
|
||||||
"Don't talk to the %'d _blocklisted peers", n ), n );
|
"Ignore the %'d _blocklisted peers", n ), n );
|
||||||
gtk_button_set_label( GTK_BUTTON( w ), buf );
|
gtk_button_set_label( GTK_BUTTON( w ), buf );
|
||||||
}
|
}
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -444,14 +444,6 @@ peerPage( GObject * core )
|
||||||
|
|
||||||
t = hig_workarea_create( );
|
t = hig_workarea_create( );
|
||||||
hig_workarea_add_section_title (t, &row, _("Options"));
|
hig_workarea_add_section_title (t, &row, _("Options"));
|
||||||
|
|
||||||
s = _("Use peer e_xchange");
|
|
||||||
w = new_check_button( s, PREF_KEY_PEX, core );
|
|
||||||
hig_workarea_add_wide_control( t, &row, w );
|
|
||||||
|
|
||||||
s = _("_Ignore unencrypted peers");
|
|
||||||
w = new_check_button( s, PREF_KEY_ENCRYPTED_ONLY, core );
|
|
||||||
hig_workarea_add_wide_control( t, &row, w );
|
|
||||||
|
|
||||||
w = new_check_button( "", PREF_KEY_BLOCKLIST_ENABLED, core );
|
w = new_check_button( "", PREF_KEY_BLOCKLIST_ENABLED, core );
|
||||||
updateBlocklistText( w, TR_CORE( core ) );
|
updateBlocklistText( w, TR_CORE( core ) );
|
||||||
|
@ -468,7 +460,15 @@ peerPage( GObject * core )
|
||||||
g_signal_connect( w, "toggled", G_CALLBACK(target_cb), b );
|
g_signal_connect( w, "toggled", G_CALLBACK(target_cb), b );
|
||||||
target_cb( w, b );
|
target_cb( w, b );
|
||||||
hig_workarea_add_wide_control( t, &row, h );
|
hig_workarea_add_wide_control( t, &row, h );
|
||||||
|
|
||||||
|
s = _("Ignore _unencrypted peers");
|
||||||
|
w = new_check_button( s, PREF_KEY_ENCRYPTED_ONLY, core );
|
||||||
|
hig_workarea_add_wide_control( t, &row, w );
|
||||||
|
|
||||||
|
s = _("Use peer e_xchange");
|
||||||
|
w = new_check_button( s, PREF_KEY_PEX, core );
|
||||||
|
hig_workarea_add_wide_control( t, &row, w );
|
||||||
|
|
||||||
hig_workarea_add_section_divider( t, &row );
|
hig_workarea_add_section_divider( t, &row );
|
||||||
/* section header for the "maximum number of peers" section */
|
/* section header for the "maximum number of peers" section */
|
||||||
hig_workarea_add_section_title( t, &row, _( "Limits" ) );
|
hig_workarea_add_section_title( t, &row, _( "Limits" ) );
|
||||||
|
|
Loading…
Reference in a new issue