Changeset 3816
- Timestamp:
- Nov 13, 2007, 12:56:58 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/appcast.xml
r3813 r3816 7 7 <language>en</language> 8 8 <pubDate>Tue, 23 Oct 2007 23:20:00 -0400</pubDate> 9 <lastBuildDate> Tue, 12 Nov 2007 16:22:00 -0400</lastBuildDate>9 <lastBuildDate>Mon, 12 Nov 2007 16:22:00 -0400</lastBuildDate> 10 10 11 11 <item> … … 23 23 24 24 <h4>TRANSMISSION 0.72 AND EARLIER: COMPLETE YOUR DOWNLOADS BEFORE UPGRADING OR YOU WILL LOSE DATA!</h4>]]></description> 25 <pubDate> Tue, 12 Nov 2007 16:22:00 -0400</pubDate>25 <pubDate>Mon, 12 Nov 2007 16:22:00 -0400</pubDate> 26 26 <enclosure sparkle:version="3811" sparkle:shortVersionString="0.93" url="http://mirrors.m0k.org/transmission/files/Transmission-0.93.dmg" length="2142946" type="application/octet-stream"/> 27 27 </item> -
trunk/macosx/BadgeView.m
r3754 r3816 73 73 if (uploadRateString || downloadRateString) 74 74 { 75 NSRect badgeRect ;75 NSRect badgeRect = NSZeroRect; 76 76 badgeRect.size = [[NSImage imageNamed: @"UploadBadge"] size]; 77 badgeRect.origin = NSZeroPoint;78 77 79 78 //ignore shadow of badge when placing string -
trunk/macosx/Controller.m
r3793 r3816 2199 2199 2200 2200 //determine where to move them 2201 int i , decrease = 0;2201 int i; 2202 2202 for (i = [indexes firstIndex]; i < newRow && i != NSNotFound; i = [indexes indexGreaterThanIndex: i]) 2203 2203 newRow--; … … 2268 2268 while ((file = [enumerator nextObject])) 2269 2269 { 2270 canAdd = tr_torrentParse(fLib, [file UTF8String], NULL, NULL); 2271 if (canAdd == TR_OK) 2270 if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) 2272 2271 { 2273 if (!fOverlayWindow) 2274 fOverlayWindow = [[DragOverlayWindow alloc] initWithLib: fLib forWindow: fWindow]; 2275 [fOverlayWindow setTorrents: files]; 2276 2277 return NSDragOperationCopy; 2272 switch (canAdd = tr_torrentParse(fLib, [file UTF8String], NULL, NULL)) 2273 { 2274 case TR_OK: 2275 if (!fOverlayWindow) 2276 fOverlayWindow = [[DragOverlayWindow alloc] initWithLib: fLib forWindow: fWindow]; 2277 [fOverlayWindow setTorrents: files]; 2278 2279 return NSDragOperationCopy; 2280 2281 case TR_EDUPLICATE: 2282 torrent = YES; 2283 } 2278 2284 } 2279 else if (canAdd == TR_EDUPLICATE)2280 torrent = YES;2281 else;2282 2285 } 2283 2286 … … 2305 2308 } 2306 2309 2310 #warning when dragging a torrent file that already exists, it gives a weird result 2307 2311 - (void) draggingExited: (id <NSDraggingInfo>) info 2308 2312 { … … 2321 2325 BOOL torrent = NO, accept = YES; 2322 2326 2323 #warning replace ifs with switch2324 2327 //create an array of files that can be opened 2325 2328 NSMutableArray * filesToOpen = [[NSMutableArray alloc] init]; … … 2330 2333 while ((file = [enumerator nextObject])) 2331 2334 { 2332 canAdd = tr_torrentParse(fLib, [file UTF8String], NULL, NULL); 2333 if (canAdd == TR_OK) 2335 if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) 2334 2336 { 2335 [filesToOpen addObject: file]; 2336 torrent = YES; 2337 switch(tr_torrentParse(fLib, [file UTF8String], NULL, NULL)) 2338 { 2339 case TR_OK: 2340 [filesToOpen addObject: file]; 2341 torrent = YES; 2342 break; 2343 2344 case TR_EDUPLICATE: 2345 torrent = YES; 2346 } 2337 2347 } 2338 else if (canAdd == TR_EDUPLICATE)2339 torrent = YES;2340 else;2341 2348 } 2342 2349 -
trunk/macosx/DragOverlayWindow.m
r3427 r3816 86 86 while ((file = [enumerator nextObject])) 87 87 { 88 if (tr_torrentParse(fLib, [file UTF8String], NULL, &info) == TR_OK) 88 if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame 89 && tr_torrentParse(fLib, [file UTF8String], NULL, &info) == TR_OK) 89 90 { 90 91 count++; -
trunk/macosx/Torrent.m
r3790 r3816 750 750 - (float) notAvailableDesired 751 751 { 752 //NSLog(@"not available %f", (float)(fStat->desiredSize - fStat->desiredAvailable) / [self size]);753 752 return (float)(fStat->desiredSize - fStat->desiredAvailable) / [self size]; 754 753 }
Note: See TracChangeset
for help on using the changeset viewer.