* Source/GNUmakefile.postamble (Info-gnustep.plist): Depend on

../Version.
* Source/NSOutlineView.m ([NSOutlineView -rowForItem:]): Declare var
at beginning of block for gcc2 (Fixes Bug #13936).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21554 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2005-07-27 17:13:55 +00:00
parent d7bfc65e99
commit 5cd54d4415
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2005-07-27 Adam Fedor <fedor@gnu.org>
* Source/GNUmakefile.postamble (Info-gnustep.plist): Depend on
../Version.
* Source/NSOutlineView.m ([NSOutlineView -rowForItem:]): Declare var
at beginning of block for gcc2 (Fixes Bug #13936).
2005-07-25 22:28 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSOutlineView.m: Make [NSOutlineView rowForItem:] return

View file

@ -125,7 +125,7 @@ libgnustep-gui.def: $(OBJ_FILES_TO_LINK)
#
# Make an Info.plist since libraries don't have these normally
#
Info-gnustep.plist:
Info-gnustep.plist: ../Version
$(ECHO_CREATING)(echo "{"; \
echo " NSExecutable = \"gnustep-gui\";"; \
echo " NSPrincipalClass = \"NSApplication\";"; \

View file

@ -521,10 +521,11 @@ static NSImage *unexpandable = nil;
*/
- (int)rowForItem: (id)item
{
int row;
if(item == nil)
return -1;
int row = [_items indexOfObject: item];
row = [_items indexOfObject: item];
return (row == NSNotFound) ? -1 : row;
}