mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:40:48 +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
f14428de58
commit
2138dcdb9f
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>
|
2011-06-07 07:40-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Source/NSMenuItem.m: Remove temporary fix.
|
* Source/NSMenuItem.m: Remove temporary fix.
|
||||||
|
|
|
@ -290,11 +290,6 @@ typedef struct {
|
||||||
if (themes == nil)
|
if (themes == nil)
|
||||||
{
|
{
|
||||||
themes = [NSMutableDictionary new];
|
themes = [NSMutableDictionary new];
|
||||||
[[NSNotificationCenter defaultCenter]
|
|
||||||
addObserver: self
|
|
||||||
selector: @selector(defaultsDidChange:)
|
|
||||||
name: NSUserDefaultsDidChangeNotification
|
|
||||||
object: nil];
|
|
||||||
null = RETAIN([NSNull null]);
|
null = RETAIN([NSNull null]);
|
||||||
defaultTheme = [[self alloc] initWithBundle: nil];
|
defaultTheme = [[self alloc] initWithBundle: nil];
|
||||||
ASSIGN(theTheme, defaultTheme);
|
ASSIGN(theTheme, defaultTheme);
|
||||||
|
@ -614,6 +609,16 @@ typedef struct {
|
||||||
{
|
{
|
||||||
[[[window contentView] superview] setNeedsDisplay: YES];
|
[[[window contentView] superview] setNeedsDisplay: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Listen to notifications
|
||||||
|
*/
|
||||||
|
[[NSNotificationCenter defaultCenter]
|
||||||
|
addObserver: [self class]
|
||||||
|
selector: @selector(defaultsDidChange:)
|
||||||
|
name: NSUserDefaultsDidChangeNotification
|
||||||
|
object: nil];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray*) authors
|
- (NSArray*) authors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue