Merge from 0.7.0

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10329 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-07-09 02:49:03 +00:00
parent caedf71059
commit 234c006585
27 changed files with 794 additions and 478 deletions

View file

@ -1045,7 +1045,8 @@ static NSNotificationCenter *nc;
- (BOOL) shouldDrawInsertionPoint
{
return (_selected_range.length == 0) && _tf.is_editable;
return (_selected_range.length == 0) && _tf.is_editable
&& [_window isKeyWindow];
}
/*
@ -2491,6 +2492,20 @@ afterString in order over charRange. */
return YES;
}
- (void) becomeKeyWindow
{
[self setNeedsDisplayInRect: _insertionPointRect
avoidAdditionalLayout: YES];
//<!> start timed entry
}
- (void) resignKeyWindow
{
[self setNeedsDisplayInRect: _insertionPointRect
avoidAdditionalLayout: YES];
//<!> stop timed entry
}
- (void) drawRect: (NSRect)rect
{
/* TODO: Only do relayout if needed */