Correction for bug#13754.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21529 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-07-24 20:26:17 +00:00
parent b1b9a402d5
commit 8fbffd384b
4 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-07-24 16:31 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassEditor.m: Call selectRow: method.
* GormCore/GormOutlineView.[hm]: Added new selectRow: method.
Corrects bug#13754.
2005-07-24 12:29 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Eliminated [Gorm finishLaunching] and moved default

View file

@ -1022,6 +1022,7 @@ objectValueForTableColumn: (NSTableColumn *)aTableColumn
// scroll to the item..
[gov scrollRowToVisible: row];
[gov selectRow: row];
}
}
}

View file

@ -64,6 +64,7 @@ typedef enum {None, Outlets, Actions} GSAttributeType;
- (GSAttributeType)editType;
- (void) removeItemAtRow: (int)row;
- (void) reset;
- (void) selectRow: (int)rowIndex;
@end /* interface of GormOutlineView */
// informal protocol to define necessary methods on

View file

@ -30,6 +30,7 @@
#include <Foundation/NSNull.h>
#include <Foundation/NSException.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSIndexSet.h>
#include <AppKit/NSTableColumn.h>
#include <AppKit/NSCell.h>
#include <AppKit/NSEvent.h>
@ -809,5 +810,12 @@ static NSColor *darkGreyBlueColor = nil;
}
return;
}
- (void) selectRow: (int)rowIndex
{
[self setNeedsDisplayInRect: [self rectOfRow: rowIndex]];
[_selectedRows addIndex: rowIndex];
_selectedRow = rowIndex;
}
@end /* implementation of GormOutlineView */