mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +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
4c6a81bf9d
commit
a77f9ca36a
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>
|
Tue Mar 2 13:27:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Source/NSView.m: Bugfix in redisplay - avoid views being redrawn
|
* Source/NSView.m: Bugfix in redisplay - avoid views being redrawn
|
||||||
|
|
|
@ -500,7 +500,7 @@
|
||||||
|
|
||||||
- (BOOL) isOpaque
|
- (BOOL) isOpaque
|
||||||
{
|
{
|
||||||
return cell_bezeled;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setBezeled: (BOOL)flag
|
- (void) setBezeled: (BOOL)flag
|
||||||
|
@ -618,13 +618,6 @@
|
||||||
{
|
{
|
||||||
cellFrame = NSInsetRect(cellFrame, xDist, yDist);
|
cellFrame = NSInsetRect(cellFrame, xDist, yDist);
|
||||||
|
|
||||||
// Clear the cell frame
|
|
||||||
if ([self isOpaque])
|
|
||||||
{
|
|
||||||
[[NSColor lightGrayColor] set];
|
|
||||||
NSRectFill(cellFrame);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ([self type])
|
switch ([self type])
|
||||||
{
|
{
|
||||||
case NSTextCellType:
|
case NSTextCellType:
|
||||||
|
|
|
@ -229,6 +229,18 @@
|
||||||
[super setStringValue:aString];
|
[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
|
// NSCoding protocol
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue