Changeset 3394
- Timestamp:
- Oct 13, 2007, 1:54:19 PM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/DragOverlayView.m
r3391 r3394 25 25 #import "DragOverlayView.h" 26 26 #import "NSBezierPathAdditions.h" 27 28 #define PADDING 10.0 27 29 28 30 @implementation DragOverlayView … … 87 89 - (void) setOverlay: (NSImage *) icon mainLine: (NSString *) mainLine subLine: (NSString *) subLine 88 90 { 89 if (fBadge) 90 [fBadge release]; 91 [fBadge release]; 91 92 fBadge = [fBackBadge copy]; 92 93 NSSize badgeSize = [fBadge size]; … … 111 112 } 112 113 113 float padding = 10.0;114 115 114 [fBadge lockFocus]; 116 115 117 116 //place icon 118 [icon compositeToPoint: NSMakePoint( padding, (badgeSize.height - iconSize.height) * 0.5)117 [icon compositeToPoint: NSMakePoint(PADDING, (badgeSize.height - iconSize.height) * 0.5) 119 118 operation: NSCompositeSourceOver]; 120 119 [icon release]; … … 124 123 NSSize subLineSize = [subLine sizeWithAttributes: fSubLineAttributes]; 125 124 126 NSRect lineRect = NSMakeRect( padding+ iconSize.width + 5.0,125 NSRect lineRect = NSMakeRect(PADDING + iconSize.width + 5.0, 127 126 (badgeSize.height + (subLineSize.height + 2.0 - mainLineSize.height)) * 0.5, 128 badgeSize.width - ( padding + iconSize.width + 2.0) - padding, mainLineSize.height);127 badgeSize.width - (PADDING + iconSize.width + 2.0) - PADDING, mainLineSize.height); 129 128 [mainLine drawInRect: lineRect withAttributes: fMainLineAttributes]; 130 129 -
trunk/macosx/Torrent.m
r3383 r3394 556 556 return; 557 557 558 NSString * folder = [[openPanel filenames] objectAtIndex: 0]; 559 if (fUseIncompleteFolder) 560 [self changeDownloadFolder: folder]; 561 else 562 [self changeDownloadFolder: folder]; 558 [self changeDownloadFolder: [[openPanel filenames] objectAtIndex: 0]]; 563 559 564 560 [self startTransfer];
Note: See TracChangeset
for help on using the changeset viewer.