mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:10:47 +00:00
Updated for the fact the NSHighlightRect() no longer flushes the window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13681 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
68a815cb1b
commit
155b4a267f
1 changed files with 13 additions and 4 deletions
|
@ -443,6 +443,7 @@
|
||||||
NSHighlightRect (oldRect);
|
NSHighlightRect (oldRect);
|
||||||
}
|
}
|
||||||
NSHighlightRect (r);
|
NSHighlightRect (r);
|
||||||
|
[_window flushWindow];
|
||||||
lit = YES;
|
lit = YES;
|
||||||
oldRect = r;
|
oldRect = r;
|
||||||
}
|
}
|
||||||
|
@ -456,6 +457,7 @@
|
||||||
if (lit)
|
if (lit)
|
||||||
{
|
{
|
||||||
NSHighlightRect (oldRect);
|
NSHighlightRect (oldRect);
|
||||||
|
[_window flushWindow];
|
||||||
lit = NO;
|
lit = NO;
|
||||||
}
|
}
|
||||||
tvRect = [_tableView visibleRect];
|
tvRect = [_tableView visibleRect];
|
||||||
|
@ -500,6 +502,7 @@
|
||||||
if (lit == YES)
|
if (lit == YES)
|
||||||
{
|
{
|
||||||
NSHighlightRect(oldRect);
|
NSHighlightRect(oldRect);
|
||||||
|
[_window flushWindow];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self unlockFocus];
|
[self unlockFocus];
|
||||||
|
@ -530,7 +533,7 @@
|
||||||
[[currentColumn headerCell]
|
[[currentColumn headerCell]
|
||||||
setBackgroundColor: [NSColor controlColor]];
|
setBackgroundColor: [NSColor controlColor]];
|
||||||
|
|
||||||
[[currentColumn headerCell]
|
[[currentColumn headerCell]
|
||||||
highlight: YES
|
highlight: YES
|
||||||
withFrame: rect
|
withFrame: rect
|
||||||
inView: self];
|
inView: self];
|
||||||
|
@ -651,10 +654,12 @@
|
||||||
if (lit)
|
if (lit)
|
||||||
NSHighlightRect(oldRect);
|
NSHighlightRect(oldRect);
|
||||||
NSHighlightRect(highlightRect);
|
NSHighlightRect(highlightRect);
|
||||||
|
[_window flushWindow];
|
||||||
}
|
}
|
||||||
else if (!lit)
|
else if (!lit)
|
||||||
{
|
{
|
||||||
NSHighlightRect(highlightRect);
|
NSHighlightRect(highlightRect);
|
||||||
|
[_window flushWindow];
|
||||||
}
|
}
|
||||||
oldRect = highlightRect;
|
oldRect = highlightRect;
|
||||||
lit = YES;
|
lit = YES;
|
||||||
|
@ -672,13 +677,15 @@
|
||||||
{
|
{
|
||||||
if (lit)
|
if (lit)
|
||||||
NSHighlightRect(oldRect);
|
NSHighlightRect(oldRect);
|
||||||
// NSHighlightRect(highlightRect);
|
// NSHighlightRect(highlightRect);
|
||||||
|
[_window flushWindow];
|
||||||
}
|
}
|
||||||
else if (!lit)
|
else if (!lit)
|
||||||
{
|
{
|
||||||
// NSHighlightRect(highlightRect);
|
// NSHighlightRect(highlightRect);
|
||||||
|
// [_window flushWindow];
|
||||||
}
|
}
|
||||||
// oldRect = highlightRect;
|
// oldRect = highlightRect;
|
||||||
oldRect = NSZeroRect;
|
oldRect = NSZeroRect;
|
||||||
lit = NO; //lit = YES;
|
lit = NO; //lit = YES;
|
||||||
}
|
}
|
||||||
|
@ -690,6 +697,7 @@
|
||||||
if (lit)
|
if (lit)
|
||||||
{
|
{
|
||||||
NSHighlightRect(oldRect);
|
NSHighlightRect(oldRect);
|
||||||
|
[_window flushWindow];
|
||||||
lit = NO;
|
lit = NO;
|
||||||
oldRect = NSZeroRect;
|
oldRect = NSZeroRect;
|
||||||
}
|
}
|
||||||
|
@ -731,6 +739,7 @@
|
||||||
if (lit)
|
if (lit)
|
||||||
{
|
{
|
||||||
NSHighlightRect(highlightRect);
|
NSHighlightRect(highlightRect);
|
||||||
|
[_window flushWindow];
|
||||||
lit = NO;
|
lit = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue