mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
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:
parent
a44ba18447
commit
82eac14a44
1 changed files with 4 additions and 3 deletions
|
@ -165,8 +165,6 @@ static NSImage *dragImage = nil;
|
|||
[proto setBordered: NO];
|
||||
[proto setAlignment: NSCenterTextAlignment];
|
||||
[proto setImagePosition: NSImageAbove];
|
||||
[proto setShowsStateBy: NSChangeGrayCellMask];
|
||||
[proto setHighlightsBy: NSChangeGrayCellMask];
|
||||
[proto setSelectable: NO];
|
||||
[proto setEditable: NO];
|
||||
[self setPrototype: proto];
|
||||
|
@ -403,6 +401,8 @@ NSLog(@"Could do dragging");
|
|||
[but setImage: objectImage];
|
||||
[but setTitle: [document nameForObject: obj]];
|
||||
}
|
||||
[but setShowsStateBy: NSChangeGrayCellMask];
|
||||
[but setHighlightsBy: NSChangeGrayCellMask];
|
||||
}
|
||||
while (index < rows * cols)
|
||||
{
|
||||
|
@ -410,7 +410,8 @@ NSLog(@"Could do dragging");
|
|||
|
||||
[but setImage: nil];
|
||||
[but setTitle: nil];
|
||||
[but setEnabled: NO];
|
||||
[but setShowsStateBy: NSNoCellMask];
|
||||
[but setHighlightsBy: NSNoCellMask];
|
||||
index++;
|
||||
}
|
||||
[self setIntercellSpacing: NSMakeSize(8,8)];
|
||||
|
|
Loading…
Reference in a new issue