From 7a53b3b54d2d73e855519dae11f34621ed4d8404 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 15 Jul 2006 18:42:22 +0000 Subject: [PATCH] This should make the filter buttons work a bit better. --- macosx/BarButton.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/macosx/BarButton.m b/macosx/BarButton.m index 2a583aa08..abd707172 100644 --- a/macosx/BarButton.m +++ b/macosx/BarButton.m @@ -58,6 +58,9 @@ [[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.6] set]; [rect fill]; [fButtonDown unlockFocus]; + + [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(resetBounds:) + name: NSViewBoundsDidChangeNotification object: nil]; } return self; } @@ -155,4 +158,9 @@ [self setImage: fEnabled ? fButtonIn : fButtonNormal]; } +- (void) resetBounds: (NSNotification *) notification +{ + [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO]; +} + @end