Camino only - Fix rollover tracking for close buttons as part of bug 355323. r=smorgan sr=pink

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-02-07 18:50:00 +00:00
Родитель b9a71f17cb
Коммит 06c6f743ab
1 изменённых файлов: 21 добавлений и 14 удалений

Просмотреть файл

@ -38,25 +38,36 @@
#import "RolloverImageButton.h"
@interface RolloverImageButton (Private)
- (void)updateImage:(BOOL)inIsInside;
- (BOOL)isMouseInside;
- (void)removeTrackingRect;
- (void)updateTrackingRect;
- (void)updateImage:(BOOL)inIsInside;
- (BOOL)isMouseInside;
- (void)removeTrackingRect;
- (void)updateTrackingRect;
- (void)setupDefaults;
@end
@implementation RolloverImageButton
- (id)initWithFrame:(NSRect)inFrame
{
if ((self = [super initWithFrame:inFrame])) {
mImage = nil;
mHoverImage = nil;
mTrackingTag = -1;
mTrackingIsEnabled = YES;
}
if ((self = [super initWithFrame:inFrame]))
[self setupDefaults];
return self;
}
- (void)awakeFromNib
{
[self setupDefaults];
}
- (void)setupDefaults
{
mTrackingTag = -1;
mTrackingIsEnabled = YES;
}
- (void)dealloc
{
[mImage release];
@ -195,10 +206,6 @@
[self updateTrackingRect];
}
@end
@implementation RolloverImageButton (Private)
- (void)updateImage:(BOOL)inIsInside
{
if (inIsInside) {