Changeset 5947 for trunk/gtk/details.c


Ignore:
Timestamp:
May 27, 2008, 5:47:39 PM (14 years ago)
Author:
charles
Message:

remove dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r5922 r5947  
    979979
    980980
    981 #if 0
    982 static void
    983 seeding_cap_toggled_cb (GtkToggleButton *tb, gpointer gtor)
    984 {
    985   tr_torrent_set_seeding_cap_enabled (TR_TORRENT(gtor),
    986                                       gtk_toggle_button_get_active(tb));
    987 }
    988 #endif
    989 
    990981static void
    991982sensitize_from_check_cb (GtkToggleButton *toggle, gpointer w)
     
    10121003  setSpeedLimit( spin, gtor, TR_DOWN );
    10131004}
    1014 
    1015 #if 0
    1016 static void
    1017 seeding_ratio_spun_cb (GtkSpinButton *spin, gpointer gtor)
    1018 {
    1019   tr_torrent_set_seeding_cap_ratio (TR_TORRENT(gtor),
    1020                                     gtk_spin_button_get_value(spin));
    1021 }
    1022 #endif
    10231005
    10241006static void
     
    10771059    hig_workarea_add_row( t, &row, _( "_Maximum peers:" ), w, w );
    10781060    g_signal_connect( w, "value-changed", G_CALLBACK( max_peers_spun_cb ), gtor );
    1079 
    1080 #if 0
    1081     tb = gtk_check_button_new_with_mnemonic (_("_Stop seeding at ratio:"));
    1082     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(tb), gtor->seeding_cap_enabled);
    1083     g_signal_connect (tb, "toggled", G_CALLBACK(seeding_cap_toggled_cb), gtor);
    1084     a = (GtkAdjustment*) gtk_adjustment_new (gtor->seeding_cap, 0.0, G_MAXDOUBLE, 1, 1, 1);
    1085     w = gtk_spin_button_new (a, 1, 1);
    1086     g_signal_connect (w, "value-changed", G_CALLBACK(seeding_ratio_spun_cb), gtor);
    1087     g_signal_connect (tb, "toggled", G_CALLBACK(sensitize_from_check_cb), w);
    1088     sensitize_from_check_cb (GTK_TOGGLE_BUTTON(tb), w);
    1089     hig_workarea_add_row_w (t, &row, tb, w, NULL);
    1090 #endif
    10911061
    10921062  hig_workarea_finish (t, &row);
Note: See TracChangeset for help on using the changeset viewer.