mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:50:46 +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
0fb8464b4f
commit
00f11f6d07
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>
|
2009-01-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSTextStorage.m: Change to use new GC finalization API.
|
* Source/NSTextStorage.m: Change to use new GC finalization API.
|
||||||
|
|
|
@ -1132,12 +1132,28 @@ nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress s
|
||||||
|
|
||||||
- (void) _gs_startAnimationInOwnLoop
|
- (void) _gs_startAnimationInOwnLoop
|
||||||
{
|
{
|
||||||
|
NSRunLoop *loop;
|
||||||
|
NSDate *end;
|
||||||
|
|
||||||
[_animator setRunLoopModesForAnimating:
|
[_animator setRunLoopModesForAnimating:
|
||||||
[NSArray arrayWithObject: NSAnimationBlockingRunLoopMode]];
|
[NSArray arrayWithObject: NSAnimationBlockingRunLoopMode]];
|
||||||
[_animator startAnimation];
|
[_animator startAnimation];
|
||||||
while ( [[NSRunLoop currentRunLoop]
|
loop = [NSRunLoop currentRunLoop];
|
||||||
runMode: NSAnimationBlockingRunLoopMode
|
end = [NSDate distantFuture];
|
||||||
beforeDate: [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 */;
|
/* do nothing */;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue