mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Moved variable declaration to work with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3c5f004f90
commit
48f42d5793
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-08-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBrowser.m (-encodeWithCoder:): Moved variable
|
||||
declaration to the beginning of the block to not break old
|
||||
compilers deliberately.
|
||||
|
||||
2006-08-20 12:14-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSApplication.m: Remove keys from initWithCoder: and
|
||||
|
|
|
@ -2503,6 +2503,8 @@ static NSTextFieldCell *titleCell;
|
|||
[super encodeWithCoder: aCoder];
|
||||
if([aCoder allowsKeyedCoding])
|
||||
{
|
||||
long flags = 0;
|
||||
|
||||
//
|
||||
// NOTE: The browserview under GS uses an NSMatrix subview, the one under
|
||||
// Cocoa does not. This will cause IB to issue an "inconsistency" alert
|
||||
|
@ -2512,7 +2514,6 @@ static NSTextFieldCell *titleCell;
|
|||
[aCoder encodeObject: [self _getTitleOfColumn: 0] forKey: @"NSFirstColumnTitle"];
|
||||
[aCoder encodeObject: _pathSeparator forKey: @"NSPathSeparator"];
|
||||
|
||||
long flags = 0;
|
||||
flags |= [self hasHorizontalScroller] ? 0x10000 : 0;
|
||||
flags |= ([self allowsEmptySelection] == NO) ? 0x20000 : 0;
|
||||
flags |= [self sendsActionOnArrowKeys] ? 0x40000 : 0;
|
||||
|
|
Loading…
Reference in a new issue