mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
Lock focus / unlock focus optimizations and fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15839 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
72512673b2
commit
2177ef847e
22 changed files with 111 additions and 115 deletions
|
@ -1675,6 +1675,8 @@ static NSImage *unexpandable = nil;
|
|||
// move the drawing rect over like in the drawRow routine...
|
||||
drawingRect = [self frameOfCellAtColumn: columnIndex row: rowIndex];
|
||||
|
||||
[self lockFocus];
|
||||
|
||||
if(tb == [self outlineTableColumn])
|
||||
{
|
||||
level = [self levelForItem: item];
|
||||
|
@ -1718,7 +1720,9 @@ static NSImage *unexpandable = nil;
|
|||
delegate: self
|
||||
event: theEvent];
|
||||
}
|
||||
return;
|
||||
|
||||
[self unlockFocus];
|
||||
return;
|
||||
}
|
||||
@end /* implementation of NSOutlineView */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue