Changeset 6989
- Timestamp:
- Oct 30, 2008, 1:37:46 AM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/InfoWindowController.m
r6917 r6989 442 442 NSString * location = [torrent publicTorrentLocation]; 443 443 [fTorrentLocationField setStringValue: [location stringByAbbreviatingWithTildeInPath]]; 444 [fTorrentLocationField setToolTip: [location stringByAppendingFormat: @"\n\n%@", [torrent torrentLocation]]];444 [fTorrentLocationField setToolTip: location]; 445 445 } 446 446 else 447 447 { 448 [fTorrentLocationField setStringValue: NSLocalizedString(@"Transmission Support Folder", "Inspector -> torrent location")];449 [fTorrentLocationField setToolTip: [torrent torrentLocation]];448 [fTorrentLocationField setStringValue: @""]; 449 [fTorrentLocationField setToolTip: nil]; 450 450 } 451 451 -
trunk/macosx/PiecesView.h
r6125 r6989 34 34 35 35 Torrent * fTorrent; 36 intfNumPieces, fAcross, fWidth, fExtraBorder;36 NSInteger fNumPieces, fAcross, fWidth, fExtraBorder; 37 37 } 38 38 -
trunk/macosx/PiecesView.m
r6974 r6989 83 83 fAcross = ceil(sqrt(fNumPieces)); 84 84 85 float width = [self bounds].size.width;85 CGFloat width = [self bounds].size.width; 86 86 fWidth = (width - (fAcross + 1) * BETWEEN) / fAcross; 87 87 fExtraBorder = (width - ((fWidth + BETWEEN) * fAcross + BETWEEN)) / 2; … … 116 116 117 117 int8_t * pieces = NULL; 118 float * piecesPercent = NULL;118 CGFloat * piecesPercent = NULL; 119 119 120 120 BOOL showAvailablity = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"]; … … 126 126 else 127 127 { 128 piecesPercent = ( float *)tr_malloc(fNumPieces * sizeof(float));128 piecesPercent = (CGFloat *)tr_malloc(fNumPieces * sizeof(CGFloat)); 129 129 [fTorrent getAmountFinished: piecesPercent size: fNumPieces]; 130 130 } … … 132 132 NSImage * image = [self image]; 133 133 134 intindex = -1;134 NSInteger index = -1; 135 135 NSRect rect = NSMakeRect(0, 0, fWidth, fWidth); 136 136 BOOL change = NO; … … 183 183 { 184 184 //always redraw "mixed" 185 float percent = showAvailablity ? (float)pieces[index]/HIGH_PEERS : piecesPercent[index];185 CGFloat percent = showAvailablity ? (CGFloat)pieces[index]/HIGH_PEERS : piecesPercent[index]; 186 186 NSColor * fullColor = showAvailablity ? fGreenAvailabilityColor : fBluePieceColor; 187 187 pieceColor = [[NSColor whiteColor] blendedColorWithFraction: percent ofColor: fullColor]; -
trunk/macosx/en.lproj/Localizable.strings
r6952 r6989 264 264 "Create a Torrent File" = "Create a Torrent File"; 265 265 266 /* Create toolbar item -> tooltip */ 267 "Create torrent file" = "Create torrent file"; 268 266 269 /* Create torrent -> select file 267 270 Create toolbar item -> palette label */ 268 271 "Create Torrent File" = "Create Torrent File"; 269 270 /* Create toolbar item -> tooltip */271 "Create torrent file" = "Create torrent file";272 272 273 273 /* Create torrent -> failed -> title */ … … 690 690 "Seeding" = "Seeding"; 691 691 692 /* Torrent -> status string */ 693 "Seeding complete" = "Seeding complete"; 694 692 695 /* Growl notification title */ 693 696 "Seeding Complete" = "Seeding Complete"; 694 695 /* Torrent -> status string */696 "Seeding complete" = "Seeding complete";697 697 698 698 /* Torrent -> status string */ … … 893 893 "Transmission is already running." = "Transmission is already running."; 894 894 895 /* Inspector -> torrent location */896 "Transmission Support Folder" = "Transmission Support Folder";897 898 895 /* Torrent -> status string 899 896 status bar -> status label */
Note: See TracChangeset
for help on using the changeset viewer.