adium 5444:ff13562cc573: -dissolveToPoint is deprecated, change ...

commits at adium.im commits at adium.im
Thu Apr 25 18:10:58 UTC 2013


details:	http://hg.adium.im/adium/rev/ff13562cc573
revision:	5444:ff13562cc573
branch:		adium-1.6
author:		Frank Dowsett <wixardy at adium.im>
date:		Thu Apr 25 14:09:50 2013 -0400

-dissolveToPoint is deprecated, change to -drawAtPoint fixes #16362.
Subject: adium 5445:83d61933c544: nextPageNecessary is no longer necessary.

details:	http://hg.adium.im/adium/rev/83d61933c544
revision:	5445:83d61933c544
branch:		adium-1.6
author:		Frank Dowsett <wixardy at adium.im>
date:		Thu Apr 25 14:10:00 2013 -0400

nextPageNecessary is no longer necessary.

diffs (64 lines):

diff -r 23208f58a656 -r 83d61933c544 Frameworks/AIUtilities Framework/Source/AIImageViewWithImagePicker.m
--- a/Frameworks/AIUtilities Framework/Source/AIImageViewWithImagePicker.m	Wed Apr 17 20:59:26 2013 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIImageViewWithImagePicker.m	Thu Apr 25 14:10:00 2013 -0400
@@ -263,7 +263,7 @@
 	
 	//Draw our original image as 50% transparent
 	[dragImage lockFocus];
-	[[self image] dissolveToPoint:NSZeroPoint fraction:0.5f];
+	[[self image] drawAtPoint:NSZeroPoint fromRect:NSMakeRect(0, 0, self.image.size.width, self.image.size.height) operation:NSCompositeCopy fraction:0.5f];
 	[dragImage unlockFocus];
 	
 	//We want the image to resize
diff -r 23208f58a656 -r 83d61933c544 Plugins/Twitter Plugin/AITwitterAccount.m
--- a/Plugins/Twitter Plugin/AITwitterAccount.m	Wed Apr 17 20:59:26 2013 +0200
+++ b/Plugins/Twitter Plugin/AITwitterAccount.m	Thu Apr 25 14:10:00 2013 -0400
@@ -2150,8 +2150,6 @@
 		NSString *lastID = [self preferenceForKey:TWITTER_PREFERENCE_DM_LAST_ID
 											group:TWITTER_PREFERENCE_GROUP_UPDATES];
 		
-		BOOL nextPageNecessary = (lastID && messages.count >= TWITTER_UPDATE_DM_COUNT);
-		
 		// Store the largest tweet ID we find; this will be our "last ID" the next time we run.
 		NSString *largestTweet = nil;
 		
@@ -2160,7 +2158,7 @@
 		
 		[queuedDM addObjectsFromArray:messages];
 		
-		AILogWithSignature(@"%@ Last ID: %@ Largest Tweet: %@ Next Page Necessary: %d", self, lastID, largestTweet, nextPageNecessary);
+		AILogWithSignature(@"%@ Last ID: %@ Largest Tweet: %@", self, lastID, largestTweet);
 		
 		--pendingUpdateCount;
 		
diff -r 23208f58a656 -r 83d61933c544 Source/AIContactInfoImageViewWithImagePicker.m
--- a/Source/AIContactInfoImageViewWithImagePicker.m	Wed Apr 17 20:59:26 2013 +0200
+++ b/Source/AIContactInfoImageViewWithImagePicker.m	Thu Apr 25 14:10:00 2013 -0400
@@ -91,26 +91,8 @@
 		}
 		
 		[[NSBezierPath bezierPathWithOvalInRect:snapBackRect] fill];
-		[snapbackImage dissolveToPoint:snapBackRect.origin fraction:1.0f];
+		[snapbackImage drawAtPoint:snapBackRect.origin fromRect:[self bounds] operation:NSCompositeSourceOver fraction:1.0f];
 	}
-		
-	/*
-	if (hovered) {
-		[[[NSColor blackColor] colorWithAlphaComponent:0.40] set];
-		[clipPath fill];
-		
-		//Draw the arrow
-		NSBezierPath	*arrowPath = [NSBezierPath bezierPath];
-		NSRect			frame = [self frame];
-		[arrowPath moveToPoint:NSMakePoint(frame.size.width - ARROW_XOFFSET - ARROW_WIDTH, 
-										   (ARROW_YOFFSET + ARROW_HEIGHT))];
-		[arrowPath relativeLineToPoint:NSMakePoint(ARROW_WIDTH, 0)];
-		[arrowPath relativeLineToPoint:NSMakePoint(-(ARROW_WIDTH/2), -(ARROW_HEIGHT))];
-		
-		[[NSColor whiteColor] set];
-		[arrowPath fill];
-	}
-	*/
 
 	[NSGraphicsContext restoreGraphicsState];
 }




More information about the commits mailing list