Changeset 11522
- Timestamp:
- Dec 12, 2010, 4:43:19 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/remote.c
r11518 r11522 1007 1007 printf (" Bandwidth Priority: %s\n", 1008 1008 bandwidthPriorityNames[(i + 1) & 3]); 1009 1009 1010 1010 printf( "\n" ); 1011 1011 } … … 1886 1886 1887 1887 if( tset != 0 ) { addIdArg( tr_bencDictFind( tset, ARGUMENTS ), id ); status |= flush( host, port, &tset ); } 1888 1888 1889 1889 switch( c ) 1890 1890 { … … 2009 2009 else 2010 2010 sargs = ensure_sset( &sset ); 2011 2011 2012 2012 switch( c ) 2013 2013 { … … 2078 2078 else 2079 2079 args = ensure_tset( &tset ); 2080 2080 2081 2081 switch( c ) 2082 { 2082 { 2083 2083 case 'g': addFiles( args, "files-wanted", optarg ); 2084 2084 break; -
trunk/gtk/file-list.c
r11217 r11522 296 296 { 297 297 struct ActiveData * data = gdata; 298 298 299 299 /* active means: if it's selected or any ancestor is selected */ 300 300 -
trunk/gtk/makemeta-ui.c
r11132 r11522 304 304 buf, builder->fileCount ); 305 305 g_string_append( gstr, "; " ); 306 306 307 307 tr_formatter_mem_B( buf, builder->pieceSize, sizeof( buf ) ); 308 308 g_string_append_printf( gstr, gtr_ngettext( "%1$'d Piece @ %2$s", -
trunk/gtk/torrent-cell-renderer.c
r11268 r11522 523 523 if( x_offset ) 524 524 *x_offset = cell_area ? cell_area->x : 0; 525 525 526 526 if( y_offset ) 527 527 *y_offset = cell_area ? (int)((cell_area->height - (cell->ypad*2 +h)) / 2.0) : 0; -
trunk/gtk/tr-core.c
r11446 r11522 1182 1182 make sure its state is correctly set */ 1183 1183 action_toggle( "toggle-main-window", TRUE); 1184 1184 1185 1185 *success = TRUE; 1186 1186 return TRUE; -
trunk/gtk/tr-window.c
r11513 r11522 865 865 { 866 866 if( w && gtr_widget_get_realized( GTK_WIDGET( w ) ) ) 867 { 867 { 868 868 GdkDisplay * display = gtk_widget_get_display( GTK_WIDGET( w ) ); 869 869 GdkCursor * cursor = isBusy ? gdk_cursor_new_for_display( display, GDK_WATCH ) : NULL; … … 873 873 874 874 if( cursor ) 875 gdk_cursor_unref( cursor ); 876 } 877 } 875 gdk_cursor_unref( cursor ); 876 } 877 } -
trunk/gtk/util.c
r11314 r11522 124 124 const int64_t ib = (int64_t)(b * pow( 10, decimal_places ) ); 125 125 if( ia < ib ) return -1; 126 if( ia > ib ) return 1; 126 if( ia > ib ) return 1; 127 127 return 0; 128 128 } -
trunk/libtransmission/history.h
r11425 r11522 21 21 * A generic short-term memory object that remembers how many times 22 22 * something happened over the last N seconds. 23 * 23 * 24 24 * For example, it could count how many are bytes transferred 25 25 * to estimate the speed over the last N seconds. -
trunk/libtransmission/list.h
r11023 r11522 101 101 TrListCompareFunc compare_func ); 102 102 103 /** 104 * @brief Insert in an ordered list 105 * @param list pointer to the list 106 * @param item the item to be inserted 107 * @param compare the comparison function. 108 */ 103 /** 104 * @brief Insert in an ordered list 105 * @param list pointer to the list 106 * @param item the item to be inserted 107 * @param compare the comparison function. 108 */ 109 109 void tr_list_insert_sorted( tr_list ** list, 110 110 void * data, -
trunk/libtransmission/peer-common.h
r10800 r11522 40 40 larger than this size. */ 41 41 MAX_BLOCK_SIZE = ( 1024 * 16 ) 42 43 42 }; 44 43 -
trunk/libtransmission/session.h
r11512 r11522 182 182 183 183 double desiredRatio; 184 184 185 185 uint16_t idleLimitMinutes; 186 186 … … 227 227 struct tr_bindsockets * tr_sessionGetBindSockets( tr_session * ); 228 228 229 int tr_sessionCountTorrents( const tr_session * session ); 229 int tr_sessionCountTorrents( const tr_session * session ); 230 230 231 231 enum -
trunk/libtransmission/torrent.c
r11506 r11522 2308 2308 tr_file_index_t f; 2309 2309 const tr_info * inf = tr_torrentInfo( tor ); 2310 2311 /* if we've never checked this piece, then it needs to be checked */ 2310 2311 /* if we've never checked this piece, then it needs to be checked */ 2312 2312 if( !inf->pieces[p].timeChecked ) { 2313 2313 tr_tordbg( tor, "[LAZY] piece %zu needs to be tested because it's never been tested", (size_t)p ); -
trunk/libtransmission/torrent.h
r11506 r11522 186 186 tr_bool dhtAnnounceInProgress; 187 187 tr_bool dhtAnnounce6InProgress; 188 188 189 189 time_t lpdAnnounceAt; 190 190 … … 418 418 * @brief Test a piece against its info dict checksum 419 419 * @return true if the piece's passes the checksum test 420 */ 420 */ 421 421 tr_bool tr_torrentCheckPiece( tr_torrent * tor, tr_piece_index_t pieceIndex ); 422 422 -
trunk/libtransmission/tr-getopt.c
r10782 r11522 61 61 int argWidth ) 62 62 { 63 int len; 63 int len; 64 64 const char * longName = opt->longName ? opt->longName : ""; 65 65 const char * shortName = opt->shortName ? opt->shortName : ""; -
trunk/libtransmission/transmission.h
r11506 r11522 1856 1856 /** The last time we uploaded or downloaded piece data on this torrent. */ 1857 1857 time_t activityDate; 1858 1858 1859 1859 /** Number of seconds since the last activity (or since started). 1860 1860 -1 if activity is not seeding or downloading. */ -
trunk/qt/favicon.cc
r11092 r11522 53 53 { 54 54 hasBeenScanned = true; 55 55 56 56 QDir cacheDir( getCacheDir( ) ); 57 57 cacheDir.mkpath( cacheDir.absolutePath( ) ); -
trunk/qt/file-tree.cc
r11405 r11522 697 697 698 698 // handle using the keyboard to toggle the 699 // wanted/unwanted state or the file priority 699 // wanted/unwanted state or the file priority 700 700 else if( event->type() == QEvent::KeyPress ) 701 701 { -
trunk/qt/filterbar.cc
r11423 r11522 266 266 /**** 267 267 ***** 268 ***** 268 ***** 269 269 ***** 270 270 ****/ … … 386 386 /**** 387 387 ***** 388 ***** 388 ***** 389 389 ***** 390 390 ****/ … … 414 414 h->addWidget( myTrackerCombo, 1 ); 415 415 h->addSpacing( hmargin*2 ); 416 416 417 417 myLineEdit = new QLineEdit( this ); 418 418 h->addWidget( myLineEdit ); -
trunk/qt/torrent-model.cc
r11092 r11522 217 217 beginRemoveRows( QModelIndex(), row, row ); 218 218 // make the myIdToRow map consistent with list view/model 219 for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i ) 219 for( QMap<int,int>::iterator i = myIdToRow.begin(); i != myIdToRow.end(); ++i ) 220 220 if( i.value() > row ) 221 221 --i.value(); -
trunk/qt/tracker-delegate.cc
r11284 r11522 54 54 55 55 QPixmap favicon = info.st.getFavicon( ); 56 56 57 57 const QString text = TrackerDelegate :: getText( info ); 58 58 QTextDocument textDoc; -
trunk/qt/tracker-delegate.h
r11284 r11522 39 39 40 40 protected: 41 QString getText( const TrackerInfo& ) const; 41 QString getText( const TrackerInfo& ) const; 42 42 QSize margin( const QStyle& style ) const; 43 43 virtual QSize sizeHint( const QStyleOptionViewItem&, const TrackerInfo& ) const; -
trunk/qt/utils.h
r11092 r11522 35 35 static void toStderr( const QString& qstr ); 36 36 37 /// 37 /// 38 38 /// URLs 39 39 /// -
trunk/utils/edit.c
r11160 r11522 138 138 } 139 139 } 140 141 140 142 141 return changed; -
trunk/utils/show.c
r11382 r11522 15 15 16 16 #define CURL_DISABLE_TYPECHECK /* otherwise -Wunreachable-code goes insane */ 17 #include <curl/curl.h> 17 #include <curl/curl.h> 18 18 19 19 #include <event.h> /* struct evbuffer */ … … 128 128 129 129 printf( "\nTRACKERS\n" ); 130 for( i=0; i<(int)inf->trackerCount; ++i ) 130 for( i=0; i<(int)inf->trackerCount; ++i ) 131 131 { 132 132 if( prevTier != inf->trackers[i].tier )
Note: See TracChangeset
for help on using the changeset viewer.