mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 448767 - Make -moz-system-metric(mac-graphite-theme) live, r+sr=roc
This commit is contained in:
parent
5078d96132
commit
9a78c778a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user