mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
2011-06-09 13:43-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSTheme.m: Move call to listen to default changes to activate instead of +initialize. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33266 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
151b1c4dde
commit
a56d2d4fc9
2 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-06-09 13:43-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSTheme.m: Move call to listen to default changes to
|
||||
activate instead of +initialize.
|
||||
|
||||
2011-06-07 07:40-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSMenuItem.m: Remove temporary fix.
|
||||
|
|
|
@ -290,11 +290,6 @@ typedef struct {
|
|||
if (themes == nil)
|
||||
{
|
||||
themes = [NSMutableDictionary new];
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
addObserver: self
|
||||
selector: @selector(defaultsDidChange:)
|
||||
name: NSUserDefaultsDidChangeNotification
|
||||
object: nil];
|
||||
null = RETAIN([NSNull null]);
|
||||
defaultTheme = [[self alloc] initWithBundle: nil];
|
||||
ASSIGN(theTheme, defaultTheme);
|
||||
|
@ -614,6 +609,16 @@ typedef struct {
|
|||
{
|
||||
[[[window contentView] superview] setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
/*
|
||||
* Listen to notifications
|
||||
*/
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
addObserver: [self class]
|
||||
selector: @selector(defaultsDidChange:)
|
||||
name: NSUserDefaultsDidChangeNotification
|
||||
object: nil];
|
||||
|
||||
}
|
||||
|
||||
- (NSArray*) authors
|
||||
|
|
Loading…
Reference in a new issue