mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-22 12:12:19 +00:00
Fixes to the text network.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
679019f7b3
commit
a7f52772bc
6 changed files with 879 additions and 257 deletions
|
@ -1190,13 +1190,16 @@ currentCursorY=[self rectForCharacterIndex:NSMaxRange([self selectedRange])].ori
|
|||
// Handling Events
|
||||
//
|
||||
-(void) mouseDown:(NSEvent *)theEvent
|
||||
{ NSSelectionGranularity granularity= NSSelectByCharacter;
|
||||
{
|
||||
NSSelectionGranularity granularity= NSSelectByCharacter;
|
||||
NSRange chosenRange,prevChosenRange,proposedRange;
|
||||
NSPoint point,startPoint;
|
||||
NSEvent *currentEvent;
|
||||
unsigned startIndex;
|
||||
BOOL didDragging=NO;
|
||||
|
||||
NSLog(@"mouseDown:");
|
||||
|
||||
if (!is_selectable) return; // If not selectable then don't recognize the mouse down
|
||||
|
||||
[[self window] makeFirstResponder:self];
|
||||
|
@ -2058,6 +2061,8 @@ NSLog(@"opti hook 2");
|
|||
|
||||
redrawLineRange=[self lineRangeForRect:rect];
|
||||
|
||||
NSLog(@"should be drawing text here. No big deal.\n");
|
||||
|
||||
if([self drawsBackground]) // clear area under text
|
||||
{ [[self backgroundColor] set]; NSRectFill(rect);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue