adium/adium

39020522478a
Parents 6fdd4b9eebcd
Children 627e2dd5fa91
Fix some breakage with the updated PSMTabBar. The update fixes #16318.
--- a/Plugins/Dual Window Interface/AIAccountSelectionView.m Sat Oct 26 23:01:44 2013 -0400
+++ b/Plugins/Dual Window Interface/AIAccountSelectionView.m Sun Apr 06 21:21:01 2014 -0400
@@ -26,7 +26,6 @@
#import <Adium/AIMetaContact.h>
#import <Adium/AIService.h>
#import <Adium/AIChat.h>
-#import <PSMTabBarControl/NSBezierPath_AMShading.h>
#define BOX_RECT NSMakeRect(0, 0, 300, 28)
#define LABEL_RECT NSMakeRect(17, 7, 56, 17)
@@ -120,9 +119,10 @@
-(void)drawRect:(NSRect)aRect
{
if (rightColor && leftColor) {
- NSBezierPath *path = [NSBezierPath bezierPathWithRect:[self bounds]];
- [path linearVerticalGradientFillWithStartColor:leftColor
- endColor:rightColor];
+ NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:leftColor
+ endingColor:rightColor];
+ [gradient drawInRect:self.bounds angle:0.0];
+ [gradient release];
}
}
--- a/Plugins/Dual Window Interface/AIMessageViewController.m Sat Oct 26 23:01:44 2013 -0400
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m Sun Apr 06 21:21:01 2014 -0400
@@ -34,8 +34,6 @@
#import <AIUtilities/AIDictionaryAdditions.h>
#import <AIUtilities/AIOSCompatibility.h>
-#import <PSMTabBarControl/NSBezierPath_AMShading.h>
-
//Heights and Widths
#define MESSAGE_VIEW_MIN_HEIGHT_RATIO 0.5f // Mininum height ratio of the message view
#define MESSAGE_VIEW_MIN_WIDTH_RATIO 0.5f // Mininum width ratio of the message view
--- a/Source/AIMessageTabSplitView.m Sat Oct 26 23:01:44 2013 -0400
+++ b/Source/AIMessageTabSplitView.m Sun Apr 06 21:21:01 2014 -0400
@@ -15,7 +15,6 @@
*/
#import "AIMessageTabSplitView.h"
-#import <PSMTabBarControl/NSBezierPath_AMShading.h>
@implementation AIMessageTabSplitView
@@ -49,9 +48,10 @@
-(void)drawDividerInRect:(NSRect)aRect
{
if (rightColor && leftColor) {
- NSBezierPath *path = [NSBezierPath bezierPathWithRect:aRect];
- [path linearVerticalGradientFillWithStartColor:leftColor
- endColor:rightColor];
+ NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:leftColor
+ endingColor:rightColor];
+ [gradient drawInRect:self.bounds angle:90.0];
+ [gradient release];
NSBezierPath *line = nil;
if (position == AIMessageSplitTabPositionLeft) {