Bug 448767 - Make -moz-system-metric(mac-graphite-theme) live, r+sr=roc

This commit is contained in:
Markus Stange 2008-09-17 18:26:57 +02:00
parent 5078d96132
commit 9a78c778a5

View File

@ -2248,6 +2248,10 @@ NSEvent* gLastDragEvent = nil;
kCorePboardType_urld,
kCorePboardType_urln,
nil]];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(controlTintChanged)
name:NSControlTintDidChangeNotification
object:nil];
return self;
@ -2267,6 +2271,8 @@ NSEvent* gLastDragEvent = nil;
if (sLastViewEntered == self)
sLastViewEntered = nil;
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
// This sets the current port to _savePort.
@ -2317,6 +2323,16 @@ NSEvent* gLastDragEvent = nil;
}
- (void)controlTintChanged
{
if (!mGeckoChild)
return;
nsGUIEvent guiEvent(PR_TRUE, NS_THEMECHANGED, mGeckoChild);
mGeckoChild->DispatchWindowEvent(guiEvent);
}
- (void)setNeedsPendingDisplay
{
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;