Add the timers for NSModalPanelRunLoopMode as well.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36187 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2013-02-22 11:28:06 +00:00
parent f520eb658d
commit 78e4d15232
4 changed files with 16 additions and 1 deletions

View file

@ -26,11 +26,13 @@
*/
#import <Foundation/NSGeometry.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSString.h>
#import <Foundation/NSTimer.h>
#import <Foundation/NSIndexSet.h>
#import <Foundation/NSUserDefaults.h>
#import "AppKit/NSApplication.h"
#import "AppKit/NSAttributedString.h"
#import "AppKit/NSBezierPath.h"
#import "AppKit/NSEvent.h"
@ -363,6 +365,7 @@ static BOOL restoreMouseMoved;
selector: @selector(_timedOut:)
userInfo: toolTipString
repeats: YES];
[[NSRunLoop currentRunLoop] addTimer: timer forMode: NSModalPanelRunLoopMode];
timedObject = self;
if ([[view window] acceptsMouseMovedEvents] == YES)
{