mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
(gtk) #779: synchronize speed limit options in the prefs and details dialogs.
This commit is contained in:
parent
cf433976b3
commit
1983822cd4
2 changed files with 8 additions and 8 deletions
|
@ -967,7 +967,7 @@ options_page_new ( TrTorrent * gtor )
|
|||
|
||||
row = 0;
|
||||
t = hig_workarea_create ();
|
||||
hig_workarea_add_section_title (t, &row, _("Speed Limits") );
|
||||
hig_workarea_add_section_title (t, &row, _("Bandwidth") );
|
||||
|
||||
tb = gtk_check_button_new_with_mnemonic (_("Limit _download speed (KB/s):"));
|
||||
b = tr_torrentGetSpeedMode(tor,TR_DOWN) == TR_SPEEDLIMIT_SINGLE;
|
||||
|
|
|
@ -306,13 +306,6 @@ networkPage( GObject * core, gpointer alive )
|
|||
|
||||
hig_workarea_add_section_title (t, &row, _("Bandwidth"));
|
||||
|
||||
s = _("Limit _upload speed (KB/s):");
|
||||
w = new_check_button( s, PREF_KEY_UL_LIMIT_ENABLED, core );
|
||||
w2 = new_spin_button( PREF_KEY_UL_LIMIT, core, 0, INT_MAX, 5 );
|
||||
gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_UL_LIMIT_ENABLED ) );
|
||||
g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
|
||||
hig_workarea_add_row_w( t, &row, w, w2, NULL );
|
||||
|
||||
s = _("Limit _download speed (KB/s):");
|
||||
w = new_check_button( s, PREF_KEY_DL_LIMIT_ENABLED, core );
|
||||
w2 = new_spin_button( PREF_KEY_DL_LIMIT, core, 0, INT_MAX, 5 );
|
||||
|
@ -320,6 +313,13 @@ networkPage( GObject * core, gpointer alive )
|
|||
g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
|
||||
hig_workarea_add_row_w( t, &row, w, w2, NULL );
|
||||
|
||||
s = _("Limit _upload speed (KB/s):");
|
||||
w = new_check_button( s, PREF_KEY_UL_LIMIT_ENABLED, core );
|
||||
w2 = new_spin_button( PREF_KEY_UL_LIMIT, core, 0, INT_MAX, 5 );
|
||||
gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_UL_LIMIT_ENABLED ) );
|
||||
g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
|
||||
hig_workarea_add_row_w( t, &row, w, w2, NULL );
|
||||
|
||||
hig_workarea_add_section_title (t, &row, _("Ports"));
|
||||
|
||||
s = _("_Forward port from router with UPnP or NAT-PMP" );
|
||||
|
|
Loading…
Add table
Reference in a new issue