Indentation tidyups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10813 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2001-08-30 18:36:06 +00:00
parent 7b104b7886
commit 6ac967a696

View file

@ -1093,8 +1093,10 @@ static NSNotificationCenter *nc;
if (flag) if (flag)
{ {
if (color == nil) if (color == nil)
color = _caret_color; {
color = _caret_color;
}
[color set]; [color set];
NSRectFill (rect); NSRectFill (rect);
} }
@ -1872,15 +1874,16 @@ static NSNotificationCenter *nc;
- (void) clickedOnLink: (id)link - (void) clickedOnLink: (id)link
atIndex: (unsigned int)charIndex atIndex: (unsigned int)charIndex
{ {
/* Notifies the delegate that the user clicked in a link at the
/* Notifies the delegate that the user clicked in a link at the specified charIndex. The delegate may take any appropriate actions
specified charIndex. The delegate may take any appropriate actions to handle the click in its textView: clickedOnLink: atIndex:
to handle the click in its textView: clickedOnLink: atIndex: method. */
method. */
if (_delegate != nil && if (_delegate != nil &&
[_delegate respondsToSelector: [_delegate respondsToSelector:
@selector(textView:clickedOnLink:atIndex:)]) @selector(textView:clickedOnLink:atIndex:)])
{
[_delegate textView: self clickedOnLink: link atIndex: charIndex]; [_delegate textView: self clickedOnLink: link atIndex: charIndex];
}
} }
/* /*
@ -3308,7 +3311,7 @@ other than copy/paste or dragging. */
glyphRange = [_layoutManager glyphRangeForCharacterRange: aRange glyphRange = [_layoutManager glyphRangeForCharacterRange: aRange
actualCharacterRange: NULL]; actualCharacterRange: NULL];
return [_layoutManager boundingRectForGlyphRange: glyphRange return [_layoutManager boundingRectForGlyphRange: glyphRange
inTextContainer: _textContainer]; inTextContainer: _textContainer];
} }