From a99e4a04e090555aa847b9926e9ff9ac08aa7eb7 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Mon, 22 Sep 2008 11:09:32 +0200 Subject: [PATCH] Bug 122000 - "Moz apps require restart to pick up highlight color changes in System Preferences" [r+sr=roc] --- widget/src/cocoa/nsChildView.mm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/widget/src/cocoa/nsChildView.mm b/widget/src/cocoa/nsChildView.mm index 59c0880346fa..c71bf583d562 100644 --- a/widget/src/cocoa/nsChildView.mm +++ b/widget/src/cocoa/nsChildView.mm @@ -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;