mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
Fix bug #25327
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3d4657d03a
commit
b1a66b9002
2 changed files with 24 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-01-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSAnimation.m: _gs_startAnimationInOwnLoop hopefully fixed
|
||||
bug #25327
|
||||
|
||||
2009-01-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTextStorage.m: Change to use new GC finalization API.
|
||||
|
|
|
@ -1132,12 +1132,28 @@ nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress s
|
|||
|
||||
- (void) _gs_startAnimationInOwnLoop
|
||||
{
|
||||
NSRunLoop *loop;
|
||||
NSDate *end;
|
||||
|
||||
[_animator setRunLoopModesForAnimating:
|
||||
[NSArray arrayWithObject: NSAnimationBlockingRunLoopMode]];
|
||||
[_animator startAnimation];
|
||||
while ( [[NSRunLoop currentRunLoop]
|
||||
runMode: NSAnimationBlockingRunLoopMode
|
||||
beforeDate: [NSDate distantFuture]] )
|
||||
loop = [NSRunLoop currentRunLoop];
|
||||
end = [NSDate distantFuture];
|
||||
for (;;)
|
||||
{
|
||||
if ([loop runMode: NSAnimationBlockingRunLoopMode beforeDate: end] == NO)
|
||||
{
|
||||
NSDate *d;
|
||||
|
||||
d = [loop limitDateForMode: NSAnimationBlockingRunLoopMode];
|
||||
if (d == nil)
|
||||
{
|
||||
break; // No inputs and no timers.
|
||||
}
|
||||
[NSThread sleepUntilDate: d];
|
||||
}
|
||||
}
|
||||
/* do nothing */;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue