mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
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:
parent
e1e1662419
commit
dde88908f9
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSColorList.m (+availableColorLists): 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.
|
||||
|
||||
2011-01-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSWorkspace.m: check on-disk cache at regular intervals ...
|
||||
|
@ -61,7 +68,7 @@
|
|||
|
||||
2011-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSColorWell.m (-activate:): Deactivate an activate color
|
||||
* Source/NSColorWell.m (-activate:): Deactivate an active color
|
||||
well when the user closes the color panel.
|
||||
|
||||
2011-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue