mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
A few bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3847 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4e1666f737
commit
78cc624011
3 changed files with 22 additions and 8 deletions
|
@ -1,3 +1,12 @@
|
|||
Wed Mar 3 08:53:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSCell.m: ([-drawInteriorWithFrame:inView:]) don't draw
|
||||
background - NSCell shouldn't draw backgrounds even if opaque -
|
||||
it's the responsibility of the subclass.
|
||||
([-isOpaque]) Fixed to return NO as it should.
|
||||
* Source/NSTextFieldCell.m: ([-drawInteriorWithFrame:inView:])
|
||||
handle drawing background if necessary before calling method in super.
|
||||
|
||||
Tue Mar 2 13:27:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSView.m: Bugfix in redisplay - avoid views being redrawn
|
||||
|
|
|
@ -500,7 +500,7 @@
|
|||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return cell_bezeled;
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void) setBezeled: (BOOL)flag
|
||||
|
@ -618,13 +618,6 @@
|
|||
{
|
||||
cellFrame = NSInsetRect(cellFrame, xDist, yDist);
|
||||
|
||||
// Clear the cell frame
|
||||
if ([self isOpaque])
|
||||
{
|
||||
[[NSColor lightGrayColor] set];
|
||||
NSRectFill(cellFrame);
|
||||
}
|
||||
|
||||
switch ([self type])
|
||||
{
|
||||
case NSTextCellType:
|
||||
|
|
|
@ -229,6 +229,18 @@
|
|||
[super setStringValue:aString];
|
||||
}
|
||||
|
||||
- (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView*)controlView
|
||||
{
|
||||
if (draw_background)
|
||||
{
|
||||
NSRect backgroundRect = NSInsetRect(cellFrame, xDist, yDist);
|
||||
|
||||
[background_color set];
|
||||
NSRectFill(backgroundRect);
|
||||
}
|
||||
[super drawInteriorWithFrame: cellFrame inView: controlView];
|
||||
}
|
||||
|
||||
//
|
||||
// NSCoding protocol
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue