Bug 377439 - Make scrollbars live to scrollbar style changes in the system prefs, r=roc

This commit is contained in:
Markus Stange 2008-10-14 15:31:09 +02:00
Родитель da2c5854c5
Коммит d9d8328dd2
1 изменённых файлов: 9 добавлений и 3 удалений

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

@ -2240,13 +2240,18 @@ NSEvent* gLastDragEvent = nil;
kCorePboardType_urln,
nil]];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(systemColorChanged)
selector:@selector(systemMetricsChanged)
name:NSControlTintDidChangeNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(systemColorChanged)
selector:@selector(systemMetricsChanged)
name:NSSystemColorsDidChangeNotification
object:nil];
[[NSDistributedNotificationCenter defaultCenter] addObserver:self
selector:@selector(systemMetricsChanged)
name:@"AppleAquaScrollBarVariantChanged"
object:nil
suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
return self;
@ -2267,6 +2272,7 @@ NSEvent* gLastDragEvent = nil;
sLastViewEntered = nil;
[[NSNotificationCenter defaultCenter] removeObserver:self];
[[NSDistributedNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
@ -2319,7 +2325,7 @@ NSEvent* gLastDragEvent = nil;
}
- (void)systemColorChanged
- (void)systemMetricsChanged
{
if (!mGeckoChild)
return;