mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
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:
parent
caedf71059
commit
234c006585
27 changed files with 794 additions and 478 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue