[vlc-commits] macosx: fix color tint change notification (fixes #8612)
David Fuhrmann
git at videolan.org
Sat May 11 18:37:20 CEST 2013
vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat May 11 18:34:49 2013 +0200| [b90201c6c0b278e00ec734e2a054c0b39f36caa7] | committer: David Fuhrmann
macosx: fix color tint change notification (fixes #8612)
(cherry picked from commit 1ebd37d31bef640885b1d9fc8a769649ff2908e5)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=b90201c6c0b278e00ec734e2a054c0b39f36caa7
---
modules/gui/macosx/MainWindowTitle.m | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/modules/gui/macosx/MainWindowTitle.m b/modules/gui/macosx/MainWindowTitle.m
index 2e3a4d1..5becd03 100644
--- a/modules/gui/macosx/MainWindowTitle.m
+++ b/modules/gui/macosx/MainWindowTitle.m
@@ -71,23 +71,6 @@
[self loadButtonIcons];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(controlTintChanged:) name: NSControlTintDidChangeNotification object: nil];
-
- [o_red_btn setImage: o_red_img];
- [o_red_btn setAlternateImage: o_red_on_img];
- [[o_red_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
- [[o_red_btn cell] setTag: 0];
- [o_yellow_btn setImage: o_yellow_img];
- [o_yellow_btn setAlternateImage: o_yellow_on_img];
- [[o_yellow_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
- [[o_yellow_btn cell] setTag: 1];
- [o_green_btn setImage: o_green_img];
- [o_green_btn setAlternateImage: o_green_on_img];
- [[o_green_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
- [[o_green_btn cell] setTag: 2];
- [o_fullscreen_btn setImage: [NSImage imageNamed:@"window-fullscreen"]];
- [o_fullscreen_btn setAlternateImage: [NSImage imageNamed:@"window-fullscreen-on"]];
- [[o_fullscreen_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
- [[o_fullscreen_btn cell] setTag: 3];
}
- (void)controlTintChanged:(NSNotification *)notification
@@ -159,6 +142,23 @@
o_green_on_img = [[NSImage imageNamed:@"snowleo-window-zoom-on-graphite"] retain];
}
}
+
+ [o_red_btn setImage: o_red_img];
+ [o_red_btn setAlternateImage: o_red_on_img];
+ [[o_red_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
+ [[o_red_btn cell] setTag: 0];
+ [o_yellow_btn setImage: o_yellow_img];
+ [o_yellow_btn setAlternateImage: o_yellow_on_img];
+ [[o_yellow_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
+ [[o_yellow_btn cell] setTag: 1];
+ [o_green_btn setImage: o_green_img];
+ [o_green_btn setAlternateImage: o_green_on_img];
+ [[o_green_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
+ [[o_green_btn cell] setTag: 2];
+ [o_fullscreen_btn setImage: [NSImage imageNamed:@"window-fullscreen"]];
+ [o_fullscreen_btn setAlternateImage: [NSImage imageNamed:@"window-fullscreen-on"]];
+ [[o_fullscreen_btn cell] setShowsBorderOnlyWhileMouseInside: YES];
+ [[o_fullscreen_btn cell] setTag: 3];
}
- (BOOL)mouseDownCanMoveWindow
More information about the vlc-commits
mailing list