Changeset 5237


Ignore:
Timestamp:
Mar 11, 2008, 4:19:50 AM (14 years ago)
Author:
charles
Message:

(gtk) #779: synchronize speed limit options in the prefs and details dialogs.

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r5227 r5237  
    968968  row = 0;
    969969  t = hig_workarea_create ();
    970   hig_workarea_add_section_title (t, &row, _("Speed Limits") );
     970  hig_workarea_add_section_title (t, &row, _("Bandwidth") );
    971971
    972972    tb = gtk_check_button_new_with_mnemonic (_("Limit _download speed (KB/s):"));
  • trunk/gtk/tr-prefs.c

    r5230 r5237  
    307307    hig_workarea_add_section_title (t, &row, _("Bandwidth"));
    308308
     309        s = _("Limit _download speed (KB/s):");
     310        w = new_check_button( s, PREF_KEY_DL_LIMIT_ENABLED, core );
     311        w2 = new_spin_button( PREF_KEY_DL_LIMIT, core, 0, INT_MAX, 5 );
     312        gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_DL_LIMIT_ENABLED ) );
     313        g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
     314        hig_workarea_add_row_w( t, &row, w, w2, NULL );
     315
    309316        s = _("Limit _upload speed (KB/s):");
    310317        w = new_check_button( s, PREF_KEY_UL_LIMIT_ENABLED, core );
    311318        w2 = new_spin_button( PREF_KEY_UL_LIMIT, core, 0, INT_MAX, 5 );
    312319        gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_UL_LIMIT_ENABLED ) );
    313         g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
    314         hig_workarea_add_row_w( t, &row, w, w2, NULL );
    315 
    316         s = _("Limit _download speed (KB/s):");
    317         w = new_check_button( s, PREF_KEY_DL_LIMIT_ENABLED, core );
    318         w2 = new_spin_button( PREF_KEY_DL_LIMIT, core, 0, INT_MAX, 5 );
    319         gtk_widget_set_sensitive( GTK_WIDGET(w2), pref_flag_get( PREF_KEY_DL_LIMIT_ENABLED ) );
    320320        g_signal_connect( w, "toggled", G_CALLBACK(target_cb), w2 );
    321321        hig_workarea_add_row_w( t, &row, w, w2, NULL );
Note: See TracChangeset for help on using the changeset viewer.