Commit 2fdfed84 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed compilation when using the 10.5 or 10.6 SDK

(cherry picked from commit 2619d2f6a9d2fb47712a01066b7d49aefd6b874b)
parent 8fc7ab9e
......@@ -79,8 +79,6 @@ extern OSErr UpdateSystemActivity(UInt8 activity);
#pragma Fixes for OS X Snow Leopard (10.6)
#ifndef MAC_OS_X_VERSION_10_7
extern NSString *const NSAccessibilityFullScreenButtonAttribute;
enum {
NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7,
NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8
......
......@@ -421,9 +421,12 @@
@end
@implementation VLCCustomWindowFullscreenButton
#ifdef MAC_OS_X_VERSION_10_7
- (id)extendedAccessibilityAttributeValue: (NSString*)theAttributeName {
return ([theAttributeName isEqualToString: NSAccessibilitySubroleAttribute] ? NSAccessibilityFullScreenButtonAttribute : nil);
}
#endif
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment