mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 02:41:01 +00:00
Fix uses alternate background color flag decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40317 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
10d7bf704f
commit
67fb2de57e
1 changed files with 11 additions and 12 deletions
|
@ -1603,14 +1603,17 @@ didStartElement: (NSString*)elementName
|
||||||
NSWarnMLog(@"gridStyleMask: %@", gridStyleMask);
|
NSWarnMLog(@"gridStyleMask: %@", gridStyleMask);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mask.flags.columnOrdering = YES; // check if present - see below...
|
// These are the defaults...
|
||||||
mask.flags.columnResizing = YES; // check if present - see below...
|
mask.flags.columnOrdering = YES; // check if present - see below...
|
||||||
mask.flags.drawsGrid = (gridStyleMask != nil);
|
mask.flags.columnResizing = YES; // check if present - see below...
|
||||||
mask.flags.emptySelection = YES; // check if present - see below...
|
mask.flags.drawsGrid = (gridStyleMask != nil);
|
||||||
mask.flags.multipleSelection = YES; // check if present - see below...
|
mask.flags.emptySelection = YES; // check if present - see below...
|
||||||
mask.flags.columnSelection = [[attributes objectForKey: @"columnSelection"] boolValue];
|
mask.flags.multipleSelection = YES;
|
||||||
mask.flags.columnAutosave = YES; // check if present - see below...
|
mask.flags.columnSelection = [[attributes objectForKey: @"columnSelection"] boolValue];
|
||||||
|
mask.flags.columnAutosave = YES;
|
||||||
|
mask.flags.alternatingRowBackgroundColors = [[attributes objectForKey: @"alternatingRowBackgroundColors"] boolValue];
|
||||||
|
|
||||||
|
// Overide the defaults with any attributes present...
|
||||||
if ([attributes objectForKey: @"columnReordering"])
|
if ([attributes objectForKey: @"columnReordering"])
|
||||||
mask.flags.columnOrdering = [[attributes objectForKey: @"columnReordering"] boolValue];
|
mask.flags.columnOrdering = [[attributes objectForKey: @"columnReordering"] boolValue];
|
||||||
if ([attributes objectForKey: @"columnResizing"])
|
if ([attributes objectForKey: @"columnResizing"])
|
||||||
|
@ -2759,7 +2762,7 @@ didStartElement: (NSString*)elementName
|
||||||
// New xib stores values as attributes...
|
// New xib stores values as attributes...
|
||||||
object = [currentElement attributeForKey: key];
|
object = [currentElement attributeForKey: key];
|
||||||
}
|
}
|
||||||
#if defined(DEBUG)
|
#if 0 //defined(DEBUG)
|
||||||
else // DEBUG ONLY...
|
else // DEBUG ONLY...
|
||||||
{
|
{
|
||||||
NSWarnMLog(@"no element/attribute for key: %@", key);
|
NSWarnMLog(@"no element/attribute for key: %@", key);
|
||||||
|
@ -2767,10 +2770,6 @@ didStartElement: (NSString*)elementName
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (object == nil)
|
|
||||||
NSWarnMLog(@"no object for key: %@", key);
|
|
||||||
#endif
|
|
||||||
#if defined(DEBUG_XIB5)
|
#if defined(DEBUG_XIB5)
|
||||||
NSWarnMLog(@"DONE: key: %@ currentElement: %@ id: %@", key, [currentElement type], [currentElement attributeForKey: @"id"]);
|
NSWarnMLog(@"DONE: key: %@ currentElement: %@ id: %@", key, [currentElement type], [currentElement attributeForKey: @"id"]);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue