Make sure the system colors are set up properly before computing the

available color lists. Fixes an issue where the returned list would
either be empty or contain two instances of the system color list.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31919 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2011-01-20 19:36:49 +00:00
parent 7b455d80e0
commit 47246f7bb0
2 changed files with 9 additions and 1 deletions

View file

@ -99,6 +99,7 @@ static NSColorList *themeColorList = nil;
// Serialize access to color list
[_colorListLock lock];
[NSColor whiteColor]; // NB This ensures that the System color list is defined
[NSColorList _loadAvailableColorLists: nil];
a = [NSArray arrayWithArray: _availableColorLists];
[_colorListLock unlock];