Changeset 8211


Ignore:
Timestamp:
Apr 10, 2009, 7:16:12 PM (12 years ago)
Author:
charles
Message:

(trunk) have the gtk and qt clients use the same minimum seed ratio in the preferences dialog as the mac uses

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r8097 r8211  
    379379            {
    380380                case 'O': txt = _( "Optimistic unchoke" ); break;
    381                 case 'D': txt = _( "Downloading from this peer" ); break; 
     381                case 'D': txt = _( "Downloading from this peer" ); break;
    382382                case 'd': txt = _( "We would download from this peer if they would let us" ); break;
    383383                case 'U': txt = _( "Uploading to peer" ); break;
     
    756756
    757757    i = (int) ceil( verifiedPieceCount );
    758     tr_strlsize( buf1,  stat->haveValid + stat->haveUnchecked, sizeof( buf1 ) );
     758    tr_strlsize( buf1, stat->haveValid + stat->haveUnchecked, sizeof( buf1 ) );
    759759    tr_strlsize( buf2, stat->haveValid, sizeof( buf2 ) );
    760760    /* %1$s is total size of what we've saved to disk
  • trunk/gtk/file-list.c

    r8001 r8211  
    151151        priority = tr_torrentGetFilePriority( tor, index );
    152152        enabled  = tr_torrentGetFileDL( tor, index );
    153         mime_type = get_mime_type_from_filename( file );
     153        mime_type = get_mime_type_from_filename( file );
    154154    }
    155155    else
    156156    {
    157157        size  = 0;
    158         mime_type = DIRECTORY_MIME_TYPE;
     158        mime_type = DIRECTORY_MIME_TYPE;
    159159    }
    160160
     
    185185
    186186    if( icon != NULL )
    187         g_object_unref( icon );
     187        g_object_unref( icon );
    188188
    189189done:
     
    456456    /* instantiate the model */
    457457    store = gtk_tree_store_new ( N_FILE_COLS,
    458                                 GDK_TYPE_PIXBUF,  /* icon */
     458                                GDK_TYPE_PIXBUF,  /* icon */
    459459                                 G_TYPE_STRING,    /* label */
    460460                                 G_TYPE_INT,       /* prog [0..100] */
  • trunk/gtk/tr-prefs.c

    r8187 r8211  
    311311    s = _( "_Stop seeding torrents at ratio:" );
    312312    w = new_check_button( s, TR_PREFS_KEY_RATIO_ENABLED, core );
    313     w2 = new_spin_button_double( TR_PREFS_KEY_RATIO, core, .5, INT_MAX, .05 );
     313    w2 = new_spin_button_double( TR_PREFS_KEY_RATIO, core, 0, INT_MAX, .05 );
    314314    gtk_widget_set_sensitive( GTK_WIDGET( w2 ), pref_flag_get( TR_PREFS_KEY_RATIO_ENABLED ) );
    315315    g_signal_connect( w, "toggled", G_CALLBACK( target_cb ), w2 );
  • trunk/qt/prefs-dialog.cc

    r8194 r8211  
    549549
    550550        l = checkBoxNew( tr( "&Stop seeding torrents at ratio:" ), Prefs::RATIO_ENABLED );
    551         r = doubleSpinBoxNew( Prefs::RATIO, 0.5, INT_MAX, 0.5, 2 );
     551        r = doubleSpinBoxNew( Prefs::RATIO, 0, INT_MAX, 0.5, 2 );
    552552        hig->addRow( l, r );
    553553        enableBuddyWhenChecked( qobject_cast<QCheckBox*>(l), r );
Note: See TracChangeset for help on using the changeset viewer.