Changeset 4212


Ignore:
Timestamp:
Dec 19, 2007, 4:20:57 AM (15 years ago)
Author:
charles
Message:

(gtk) for clarity, use "downloading from X of Y connected peers" instead of "downloading from X of Y peers"

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-cell-renderer.c

    r4210 r4212  
    128128        case TR_STATUS_DOWNLOAD:
    129129            g_string_append_printf( gstr,
    130                                     ngettext( _("Downloading from %d of %d peer" ),
    131                                               _("Downloading from %d of %d peers" ),
     130                                    ngettext( _("Downloading from %d of %d connected peer" ),
     131                                              _("Downloading from %d of %d connected peers" ),
    132132                                              torStat->peersConnected ),
    133133                                    torStat->peersSendingToUs,
     
    138138        case TR_STATUS_SEED:
    139139            g_string_append_printf( gstr,
    140                                     ngettext( _( "Seeding to %d of %d peer" ),
    141                                               _( "Seeding to %d of %d peers" ),
     140                                    ngettext( _( "Seeding to %d of %d connected peer" ),
     141                                              _( "Seeding to %d of %d connected peers" ),
    142142                                              torStat->peersGettingFromUs ),
    143143                                    torStat->peersGettingFromUs,
  • trunk/gtk/tr_torrent.c

    r4210 r4212  
    127127}
    128128
    129 static tr_stat*
    130 refreshStat( TrTorrent * tor )
    131 {
    132 }
    133 
    134129const tr_stat *
    135130tr_torrent_stat(TrTorrent *tor)
    136131{
    137     g_assert( TR_IS_TORRENT(tor) );
    138 
    139     return tor->severed ? NULL : tr_torrentStat( tor->handle );
     132    return tor && !tor->severed ? tr_torrentStat( tor->handle ) : NULL;
    140133}
    141134
Note: See TracChangeset for help on using the changeset viewer.