mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 02:50:48 +00:00
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:
parent
1680fe8716
commit
5128fe7499
1 changed files with 11 additions and 8 deletions
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue