зеркало из https://github.com/mozilla/gecko-dev.git
Bug 122000 - "Moz apps require restart to pick up highlight color changes in System Preferences" [r+sr=roc]
This commit is contained in:
Родитель
e3cab97337
Коммит
a99e4a04e0
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче