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

@ -1,9 +1,16 @@
2013-02-22 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSToolTips.m
* Source/NSProgressIndicator.m
* Source/NSTextView.m: Add the timers for NSModalPanelRunLoopMode
as well.
2013-02-22 Fred Kiefer <FredKiefer@gmx.de> 2013-02-22 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTabView.m (-minimumSize, -contentRect): Make the values * Source/NSTabView.m (-minimumSize, -contentRect): Make the values
here consistent with the code in GSThemeDrawing. here consistent with the code in GSThemeDrawing.
* Source/GSThemeDrawing.m (-drawTabViewRect:...): Remove useless * Source/GSThemeDrawing.m (-drawTabViewRect:...): Remove useless
line of code. line of code.
2013-02-21 Riccardo Mottola <rm@gnu.org> 2013-02-21 Riccardo Mottola <rm@gnu.org>

View file

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

View file

@ -27,8 +27,10 @@
*/ */
#import <Foundation/NSAutoreleasePool.h> #import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSThread.h> #import <Foundation/NSThread.h>
#import <Foundation/NSTimer.h> #import <Foundation/NSTimer.h>
#import "AppKit/NSApplication.h"
#import "AppKit/NSProgressIndicator.h" #import "AppKit/NSProgressIndicator.h"
#import "AppKit/NSGraphics.h" #import "AppKit/NSGraphics.h"
#import "AppKit/NSImage.h" #import "AppKit/NSImage.h"
@ -132,6 +134,7 @@
selector: @selector(animate:) selector: @selector(animate:)
userInfo: nil userInfo: nil
repeats: YES]); repeats: YES]);
[[NSRunLoop currentRunLoop] addTimer: _timer forMode: NSModalPanelRunLoopMode];
} }
else else
{ {

View file

@ -4132,6 +4132,8 @@ Figure out how the additional layout stuff is supposed to work.
selector: @selector(_blink:) selector: @selector(_blink:)
userInfo: nil userInfo: nil
repeats: YES]; repeats: YES];
[[NSRunLoop currentRunLoop] addTimer: _insertionPointTimer
forMode: NSModalPanelRunLoopMode];
RETAIN(_insertionPointTimer); RETAIN(_insertionPointTimer);
} }