Add -resetCursorRect:inView: in NSFormCell.m

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36620 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2013-05-14 18:39:36 +00:00
parent 66ffc52ca2
commit 316ee53b63
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-05-14 German A. Arias <german@xelalug.org>
* Source/NSFormCell.m: Add method -resetCursorRect:inView:.
2013-05-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSNibLoading.m: Remove method [NSKeyedUnarchiver

View file

@ -355,6 +355,17 @@
return [super drawingRectForBounds: theRect];
}
- (void) resetCursorRect: (NSRect)cellFrame inView: (NSView *)controlView
{
NSRect rect = NSMakeRect(cellFrame.origin.x + 3 + [self titleWidth],
NSMinY(cellFrame),
NSWidth(cellFrame) - 3 - [self titleWidth],
NSHeight(cellFrame));
[super resetCursorRect: rect
inView: controlView];
}
- (void) _drawBorderAndBackgroundWithFrame: (NSRect)cellFrame inView: (NSView*)controlView
{
NSRect borderedFrame = cellFrame;