Bug 122000 - "Moz apps require restart to pick up highlight color changes in System Preferences" [r+sr=roc]

This commit is contained in:
Markus Stange 2008-09-22 11:09:32 +02:00
parent e60ac4ece4
commit fcc3f291e9

View File

@ -2249,9 +2249,13 @@ NSEvent* gLastDragEvent = nil;
kCorePboardType_urln,
nil]];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(controlTintChanged)
selector:@selector(systemColorChanged)
name:NSControlTintDidChangeNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(systemColorChanged)
name:NSSystemColorsDidChangeNotification
object:nil];
return self;
@ -2323,7 +2327,7 @@ NSEvent* gLastDragEvent = nil;
}
- (void)controlTintChanged
- (void)systemColorChanged
{
if (!mGeckoChild)
return;