fix cell highlighting (cells without objects shouldn't highlight)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5419 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-08 16:31:06 +00:00
parent a44ba18447
commit 82eac14a44

View file

@ -165,8 +165,6 @@ static NSImage *dragImage = nil;
[proto setBordered: NO]; [proto setBordered: NO];
[proto setAlignment: NSCenterTextAlignment]; [proto setAlignment: NSCenterTextAlignment];
[proto setImagePosition: NSImageAbove]; [proto setImagePosition: NSImageAbove];
[proto setShowsStateBy: NSChangeGrayCellMask];
[proto setHighlightsBy: NSChangeGrayCellMask];
[proto setSelectable: NO]; [proto setSelectable: NO];
[proto setEditable: NO]; [proto setEditable: NO];
[self setPrototype: proto]; [self setPrototype: proto];
@ -403,6 +401,8 @@ NSLog(@"Could do dragging");
[but setImage: objectImage]; [but setImage: objectImage];
[but setTitle: [document nameForObject: obj]]; [but setTitle: [document nameForObject: obj]];
} }
[but setShowsStateBy: NSChangeGrayCellMask];
[but setHighlightsBy: NSChangeGrayCellMask];
} }
while (index < rows * cols) while (index < rows * cols)
{ {
@ -410,7 +410,8 @@ NSLog(@"Could do dragging");
[but setImage: nil]; [but setImage: nil];
[but setTitle: nil]; [but setTitle: nil];
[but setEnabled: NO]; [but setShowsStateBy: NSNoCellMask];
[but setHighlightsBy: NSNoCellMask];
index++; index++;
} }
[self setIntercellSpacing: NSMakeSize(8,8)]; [self setIntercellSpacing: NSMakeSize(8,8)];