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
Родитель e3cab97337
Коммит a99e4a04e0
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

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