mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:50:38 +00:00
* Source/NSLayoutManager.m: (-drawBackgroundForGlyphRange:atPoint):
Use the text view's selected text attributes. Remove TODO. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24680 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
91c57aed58
commit
a4fba19c11
1 changed files with 9 additions and 2 deletions
|
@ -1225,6 +1225,7 @@ container
|
|||
NSRange r = [self glyphRangeForCharacterRange: _selected_range
|
||||
actualCharacterRange: NULL];
|
||||
NSRange sel = r;
|
||||
NSTextView *ftv;
|
||||
|
||||
if (r.location < range.location)
|
||||
{
|
||||
|
@ -1240,8 +1241,14 @@ container
|
|||
r.length = range.location + range.length - r.location;
|
||||
}
|
||||
|
||||
/* TODO: use the text view's selected text attributes */
|
||||
color = [NSColor selectedTextBackgroundColor];
|
||||
/* Use the text view's selected text attributes */
|
||||
if ((ftv = [self firstTextView]))
|
||||
color = [[ftv selectedTextAttributes]
|
||||
objectForKey:NSBackgroundColorAttributeName];
|
||||
|
||||
if (!color)
|
||||
color = [NSColor selectedTextBackgroundColor];
|
||||
|
||||
if (!color)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue