Use flushWindow instead of [GSCurrentContext() flushGraphics].

Should fix #24200.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-09-08 19:28:05 +00:00
parent f114baad28
commit 31293f108c
2 changed files with 14 additions and 8 deletions

View file

@ -1,3 +1,9 @@
2008-09-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSSavePanel.m (-browser:createRowsForColumn:inMatrix:):
Use flushWindow instead of [GSCurrentContext() flushGraphics].
Should fix #24200.
2008-09-08 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSCell.h: Move _sizeForBorderType to GSTheme.h

View file

@ -1557,7 +1557,7 @@ createRowsForColumn: (int)column
progressString = [@"Reading Directory " stringByAppendingString: path];
[super setTitle: progressString];
// Is the following really safe?
[GSCurrentContext() flushGraphics];
[self flushWindow];
}
//TODO: Sort after creation of matrix so we do not sort
@ -1576,12 +1576,12 @@ createRowsForColumn: (int)column
{
// Update displayed message if needed
if (display_progress && (i > (base_frac * (reached_frac + 1))))
{
reached_frac++;
progressString = [progressString stringByAppendingString: @"."];
[super setTitle: progressString];
[GSCurrentContext() flushGraphics];
}
{
reached_frac++;
progressString = [progressString stringByAppendingString: @"."];
[super setTitle: progressString];
[self flushWindow];
}
// Now the real code
file = [files objectAtIndex: i];
extension = [file pathExtension];
@ -1631,7 +1631,7 @@ createRowsForColumn: (int)column
if (display_progress)
{
[super setTitle: @""];
[GSCurrentContext() flushGraphics];
[self flushWindow];
}
RELEASE (pool);