Commit d21e2440 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: remove support for OS X 10.6 Snow Leopard

parent 4d4d1ea6
......@@ -156,7 +156,6 @@ EXTRA_DIST += \
extras/package/macosx/Resources/English.lproj/SharedDialogs.xib \
extras/package/macosx/Resources/English.lproj/SyncTracks.xib \
extras/package/macosx/Resources/English.lproj/VideoEffects.xib \
extras/package/macosx/Resources/English.lproj/Wizard.xib \
extras/package/macosx/Resources/fspanel/fs_background.png \
extras/package/macosx/Resources/fspanel/fs_background@2x.png \
extras/package/macosx/Resources/fspanel/fs_exit_fullscreen.png \
......@@ -537,24 +536,6 @@ EXTRA_DIST += \
extras/package/macosx/Resources/mainwindow_dark/titlebar/lion/lion-window-zoom-over@2x.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/lion/lion-window-zoom.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/lion/lion-window-zoom@2x.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-close-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-close-on-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-close-on.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-close-over-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-close-over.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-close.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-minimize-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-minimize-on-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-minimize-on.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-minimize-over-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-minimize-over.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-minimize.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-zoom-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-zoom-on-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-zoom-on.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-zoom-over-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-zoom-over.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/snowleo/snowleo-window-zoom.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/yosemite/yosemite-window-close-graphite.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/yosemite/yosemite-window-close-graphite@2x.png \
extras/package/macosx/Resources/mainwindow_dark/titlebar/yosemite/yosemite-window-close-on-graphite.png \
......
......@@ -657,28 +657,10 @@
CC206B4714ACFEAC007935C6 /* lion-window-zoom-over-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2214ACFEAC007935C6 /* lion-window-zoom-over-graphite.png */; };
CC206B4814ACFEAC007935C6 /* lion-window-zoom-over.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2314ACFEAC007935C6 /* lion-window-zoom-over.png */; };
CC206B4914ACFEAC007935C6 /* lion-window-zoom.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2414ACFEAC007935C6 /* lion-window-zoom.png */; };
CC206B4A14ACFEAC007935C6 /* snowleo-window-close-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2614ACFEAC007935C6 /* snowleo-window-close-graphite.png */; };
CC206B4B14ACFEAC007935C6 /* snowleo-window-close-on-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2714ACFEAC007935C6 /* snowleo-window-close-on-graphite.png */; };
CC206B4C14ACFEAC007935C6 /* snowleo-window-close-on.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2814ACFEAC007935C6 /* snowleo-window-close-on.png */; };
CC206B4D14ACFEAC007935C6 /* snowleo-window-close-over-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2914ACFEAC007935C6 /* snowleo-window-close-over-graphite.png */; };
CC206B4E14ACFEAC007935C6 /* snowleo-window-close-over.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2A14ACFEAC007935C6 /* snowleo-window-close-over.png */; };
CC206B4F14ACFEAC007935C6 /* snowleo-window-close.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2B14ACFEAC007935C6 /* snowleo-window-close.png */; };
CC206B5014ACFEAC007935C6 /* snowleo-window-minimize-on-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2C14ACFEAC007935C6 /* snowleo-window-minimize-on-graphite.png */; };
CC206B5114ACFEAC007935C6 /* snowleo-window-minimize-on.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2D14ACFEAC007935C6 /* snowleo-window-minimize-on.png */; };
CC206B5214ACFEAC007935C6 /* snowleo-window-minimize-over-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2E14ACFEAC007935C6 /* snowleo-window-minimize-over-graphite.png */; };
CC206B5314ACFEAC007935C6 /* snowleo-window-minimize-over.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B2F14ACFEAC007935C6 /* snowleo-window-minimize-over.png */; };
CC206B5614ACFEAC007935C6 /* snowleo-window-zoom-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B3214ACFEAC007935C6 /* snowleo-window-zoom-graphite.png */; };
CC206B5714ACFEAC007935C6 /* snowleo-window-zoom-on-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B3314ACFEAC007935C6 /* snowleo-window-zoom-on-graphite.png */; };
CC206B5814ACFEAC007935C6 /* snowleo-window-zoom-on.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B3414ACFEAC007935C6 /* snowleo-window-zoom-on.png */; };
CC206B5914ACFEAC007935C6 /* snowleo-window-zoom-over-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B3514ACFEAC007935C6 /* snowleo-window-zoom-over-graphite.png */; };
CC206B5A14ACFEAC007935C6 /* snowleo-window-zoom-over.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B3614ACFEAC007935C6 /* snowleo-window-zoom-over.png */; };
CC206B5B14ACFEAC007935C6 /* snowleo-window-zoom.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B3714ACFEAC007935C6 /* snowleo-window-zoom.png */; };
CC206B6014ACFEB8007935C6 /* topbar-dark-center-fill.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B5D14ACFEB8007935C6 /* topbar-dark-center-fill.png */; };
CC206B6114ACFEB8007935C6 /* topbar-dark-left.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B5E14ACFEB8007935C6 /* topbar-dark-left.png */; };
CC206B6214ACFEB8007935C6 /* topbar-dark-right.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B5F14ACFEB8007935C6 /* topbar-dark-right.png */; };
CC206B6414AD044A007935C6 /* lion-window-minimize-over.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B6314AD044A007935C6 /* lion-window-minimize-over.png */; };
CC206B6714AD046C007935C6 /* snowleo-window-minimize-graphite.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B6514AD046C007935C6 /* snowleo-window-minimize-graphite.png */; };
CC206B6814AD046C007935C6 /* snowleo-window-minimize.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B6614AD046C007935C6 /* snowleo-window-minimize.png */; };
CC206B6A14AD0A52007935C6 /* window-resize.png in Resources */ = {isa = PBXBuildFile; fileRef = CC206B6914AD0A52007935C6 /* window-resize.png */; };
CC3F2E8C15F5038F009D7F39 /* playlist-1btn-pressed.png in Resources */ = {isa = PBXBuildFile; fileRef = CC3F2E8815F5038F009D7F39 /* playlist-1btn-pressed.png */; };
CC3F2E8D15F5038F009D7F39 /* playlist-1btn-pressed@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CC3F2E8915F5038F009D7F39 /* playlist-1btn-pressed@2x.png */; };
......@@ -1504,28 +1486,10 @@
CC206B2214ACFEAC007935C6 /* lion-window-zoom-over-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "lion-window-zoom-over-graphite.png"; sourceTree = "<group>"; };
CC206B2314ACFEAC007935C6 /* lion-window-zoom-over.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "lion-window-zoom-over.png"; sourceTree = "<group>"; };
CC206B2414ACFEAC007935C6 /* lion-window-zoom.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "lion-window-zoom.png"; sourceTree = "<group>"; };
CC206B2614ACFEAC007935C6 /* snowleo-window-close-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-close-graphite.png"; sourceTree = "<group>"; };
CC206B2714ACFEAC007935C6 /* snowleo-window-close-on-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-close-on-graphite.png"; sourceTree = "<group>"; };
CC206B2814ACFEAC007935C6 /* snowleo-window-close-on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-close-on.png"; sourceTree = "<group>"; };
CC206B2914ACFEAC007935C6 /* snowleo-window-close-over-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-close-over-graphite.png"; sourceTree = "<group>"; };
CC206B2A14ACFEAC007935C6 /* snowleo-window-close-over.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-close-over.png"; sourceTree = "<group>"; };
CC206B2B14ACFEAC007935C6 /* snowleo-window-close.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-close.png"; sourceTree = "<group>"; };
CC206B2C14ACFEAC007935C6 /* snowleo-window-minimize-on-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-minimize-on-graphite.png"; sourceTree = "<group>"; };
CC206B2D14ACFEAC007935C6 /* snowleo-window-minimize-on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-minimize-on.png"; sourceTree = "<group>"; };
CC206B2E14ACFEAC007935C6 /* snowleo-window-minimize-over-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-minimize-over-graphite.png"; sourceTree = "<group>"; };
CC206B2F14ACFEAC007935C6 /* snowleo-window-minimize-over.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-minimize-over.png"; sourceTree = "<group>"; };
CC206B3214ACFEAC007935C6 /* snowleo-window-zoom-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-zoom-graphite.png"; sourceTree = "<group>"; };
CC206B3314ACFEAC007935C6 /* snowleo-window-zoom-on-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-zoom-on-graphite.png"; sourceTree = "<group>"; };
CC206B3414ACFEAC007935C6 /* snowleo-window-zoom-on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-zoom-on.png"; sourceTree = "<group>"; };
CC206B3514ACFEAC007935C6 /* snowleo-window-zoom-over-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-zoom-over-graphite.png"; sourceTree = "<group>"; };
CC206B3614ACFEAC007935C6 /* snowleo-window-zoom-over.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-zoom-over.png"; sourceTree = "<group>"; };
CC206B3714ACFEAC007935C6 /* snowleo-window-zoom.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-zoom.png"; sourceTree = "<group>"; };
CC206B5D14ACFEB8007935C6 /* topbar-dark-center-fill.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "topbar-dark-center-fill.png"; path = "Resources/mainwindow_dark/topbar-dark-center-fill.png"; sourceTree = SOURCE_ROOT; };
CC206B5E14ACFEB8007935C6 /* topbar-dark-left.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "topbar-dark-left.png"; path = "Resources/mainwindow_dark/topbar-dark-left.png"; sourceTree = SOURCE_ROOT; };
CC206B5F14ACFEB8007935C6 /* topbar-dark-right.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "topbar-dark-right.png"; path = "Resources/mainwindow_dark/topbar-dark-right.png"; sourceTree = SOURCE_ROOT; };
CC206B6314AD044A007935C6 /* lion-window-minimize-over.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "lion-window-minimize-over.png"; sourceTree = "<group>"; };
CC206B6514AD046C007935C6 /* snowleo-window-minimize-graphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-minimize-graphite.png"; sourceTree = "<group>"; };
CC206B6614AD046C007935C6 /* snowleo-window-minimize.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "snowleo-window-minimize.png"; sourceTree = "<group>"; };
CC206B6914AD0A52007935C6 /* window-resize.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "window-resize.png"; path = "Resources/mainwindow_dark/window-resize.png"; sourceTree = "<group>"; };
CC269A4615E7947F00F2FDC9 /* StringUtility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = StringUtility.h; path = ../../../modules/gui/macosx/StringUtility.h; sourceTree = SOURCE_ROOT; };
CC269A4715E7947F00F2FDC9 /* StringUtility.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = StringUtility.m; path = ../../../modules/gui/macosx/StringUtility.m; sourceTree = SOURCE_ROOT; };
......@@ -2692,7 +2656,6 @@
CC91904A159B4BB800E634A7 /* topbar-dark-right@2x.png */,
1C88BA2319DC7B2200645190 /* yosemite */,
CC206B1214ACFEAC007935C6 /* lion */,
CC206B2514ACFEAC007935C6 /* snowleo */,
);
name = titlebar;
path = Resources/mainwindow_dark/titlebar;
......@@ -2747,31 +2710,6 @@
path = lion;
sourceTree = "<group>";
};
CC206B2514ACFEAC007935C6 /* snowleo */ = {
isa = PBXGroup;
children = (
CC206B2614ACFEAC007935C6 /* snowleo-window-close-graphite.png */,
CC206B2714ACFEAC007935C6 /* snowleo-window-close-on-graphite.png */,
CC206B2814ACFEAC007935C6 /* snowleo-window-close-on.png */,
CC206B2914ACFEAC007935C6 /* snowleo-window-close-over-graphite.png */,
CC206B2A14ACFEAC007935C6 /* snowleo-window-close-over.png */,
CC206B2B14ACFEAC007935C6 /* snowleo-window-close.png */,
CC206B2C14ACFEAC007935C6 /* snowleo-window-minimize-on-graphite.png */,
CC206B2D14ACFEAC007935C6 /* snowleo-window-minimize-on.png */,
CC206B2E14ACFEAC007935C6 /* snowleo-window-minimize-over-graphite.png */,
CC206B2F14ACFEAC007935C6 /* snowleo-window-minimize-over.png */,
CC206B6514AD046C007935C6 /* snowleo-window-minimize-graphite.png */,
CC206B6614AD046C007935C6 /* snowleo-window-minimize.png */,
CC206B3214ACFEAC007935C6 /* snowleo-window-zoom-graphite.png */,
CC206B3314ACFEAC007935C6 /* snowleo-window-zoom-on-graphite.png */,
CC206B3414ACFEAC007935C6 /* snowleo-window-zoom-on.png */,
CC206B3514ACFEAC007935C6 /* snowleo-window-zoom-over-graphite.png */,
CC206B3614ACFEAC007935C6 /* snowleo-window-zoom-over.png */,
CC206B3714ACFEAC007935C6 /* snowleo-window-zoom.png */,
);
path = snowleo;
sourceTree = "<group>";
};
CC6C01A40DDF3E7800C7D754 /* Minimal Mac OS X Classes */ = {
isa = PBXGroup;
children = (
......@@ -3449,50 +3387,32 @@
CC206B4914ACFEAC007935C6 /* lion-window-zoom.png in Resources */,
1C88BC2919DC7C8100645190 /* ys-progression-knob_dark.png in Resources */,
1C88BC3219DC7C8100645190 /* ys-repeat-all-blue-pressed_dark@2x.png in Resources */,
CC206B4A14ACFEAC007935C6 /* snowleo-window-close-graphite.png in Resources */,
CC206B4B14ACFEAC007935C6 /* snowleo-window-close-on-graphite.png in Resources */,
1C88BB1119DC7C7800645190 /* ys-bottom-background@2x.png in Resources */,
1C88BA7319DC7B2200645190 /* yosemite-window-minimize-over-graphite@2x.png in Resources */,
1C88BBF919DC7C8100645190 /* ys-effects-one-button_dark.png in Resources */,
CC206B4C14ACFEAC007935C6 /* snowleo-window-close-on.png in Resources */,
1C88BA5519DC7B2200645190 /* yosemite-window-close-graphite@2x.png in Resources */,
1C88BC3D19DC7C8100645190 /* ys-shuffle-blue-pressed_dark.png in Resources */,
1C88BA8119DC7B2200645190 /* yosemite-window-zoom-over@2x.png in Resources */,
1C88BC9619DC7CB300645190 /* ys-fs_forward_highlight.png in Resources */,
1C88BBF319DC7C8100645190 /* ys-effects-double-buttons-pressed_dark.png in Resources */,
1C88BB3819DC7C7800645190 /* ys-playlist-1btn-pressed.png in Resources */,
CC206B4D14ACFEAC007935C6 /* snowleo-window-close-over-graphite.png in Resources */,
1C88BBEA19DC7C8100645190 /* ys-backward-6btns-dark-pressed@2x.png in Resources */,
1C88BA6B19DC7B2200645190 /* yosemite-window-fullscreen@2x.png in Resources */,
CC206B4E14ACFEAC007935C6 /* snowleo-window-close-over.png in Resources */,
1C88BC5219DC7C8100645190 /* ys-volume-low_dark@2x.png in Resources */,
1C88BB6C19DC7C7800645190 /* ys-volume-low.png in Resources */,
1C88BC2019DC7C8100645190 /* ys-previous-6btns-dark-pressed@2x.png in Resources */,
CC206B4F14ACFEAC007935C6 /* snowleo-window-close.png in Resources */,
1C88BB1819DC7C7800645190 /* ys-effects-one-button-pressed.png in Resources */,
CC206B5014ACFEAC007935C6 /* snowleo-window-minimize-on-graphite.png in Resources */,
CC206B5114ACFEAC007935C6 /* snowleo-window-minimize-on.png in Resources */,
CC206B5214ACFEAC007935C6 /* snowleo-window-minimize-over-graphite.png in Resources */,
1C88BA6619DC7B2200645190 /* yosemite-window-fullscreen-over-graphite.png in Resources */,
1C88BC2319DC7C8100645190 /* ys-progressbar-fill-left_dark.png in Resources */,
1C88BC0819DC7C8100645190 /* ys-fullscreen-one-button-pressed_dark@2x.png in Resources */,
1C88BB2419DC7C7800645190 /* ys-fullscreen-double-buttons-pressed.png in Resources */,
1C88BB1719DC7C7800645190 /* ys-effects-double-buttons@2x.png in Resources */,
CC206B5314ACFEAC007935C6 /* snowleo-window-minimize-over.png in Resources */,
CC206B5614ACFEAC007935C6 /* snowleo-window-zoom-graphite.png in Resources */,
CC206B5714ACFEAC007935C6 /* snowleo-window-zoom-on-graphite.png in Resources */,
CC206B5814ACFEAC007935C6 /* snowleo-window-zoom-on.png in Resources */,
CC206B5914ACFEAC007935C6 /* snowleo-window-zoom-over-graphite.png in Resources */,
CC206B5A14ACFEAC007935C6 /* snowleo-window-zoom-over.png in Resources */,
CC206B5B14ACFEAC007935C6 /* snowleo-window-zoom.png in Resources */,
CC206B6014ACFEB8007935C6 /* topbar-dark-center-fill.png in Resources */,
CC206B6114ACFEB8007935C6 /* topbar-dark-left.png in Resources */,
CC206B6214ACFEB8007935C6 /* topbar-dark-right.png in Resources */,
CC206B6414AD044A007935C6 /* lion-window-minimize-over.png in Resources */,
CC206B6714AD046C007935C6 /* snowleo-window-minimize-graphite.png in Resources */,
1C88BB3F19DC7C7800645190 /* ys-playlist-btn@2x.png in Resources */,
1C88BB3D19DC7C7800645190 /* ys-playlist-btn-pressed@2x.png in Resources */,
CC206B6814AD046C007935C6 /* snowleo-window-minimize.png in Resources */,
CC206B6A14AD0A52007935C6 /* window-resize.png in Resources */,
1C88BC3819DC7C8100645190 /* ys-repeat-one-blue_dark@2x.png in Resources */,
1C88BA6819DC7B2200645190 /* yosemite-window-fullscreen-over.png in Resources */,
......
......@@ -97,12 +97,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay_Sleep] forKey:@"37_33_21_20_2_37_33_21_20_2_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonPlay] forKey:@"33_21_20_8_2_33_21_20_8_2_"];
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:k2009RemoteButtonFullscreen] forKey:@"33_21_20_3_2_33_21_20_3_2_"];
if( OSX_SNOW_LEOPARD )
/* 10.6.2+ Snow Leopard cookies */
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
else
/* Lion cookies */
[mutableCookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"42_33_23_21_20_2_33_23_21_20_2_"];
_cookieToButtonMapping = [[NSDictionary alloc] initWithDictionary: mutableCookieToButtonMapping];
......
......@@ -147,7 +147,6 @@
[[o_tableView tabViewItemAtIndex:[o_tableView indexOfTabViewItemWithIdentifier:@"filter"]] setLabel:_NS("Filter")];
[o_window setTitle:_NS("Audio Effects")];
[o_window setExcludedFromWindowsMenu:YES];
if (!OSX_SNOW_LEOPARD)
[o_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[self equalizerUpdated];
......
......@@ -25,56 +25,7 @@
#pragma mark -
#pragma OS detection code
#define OSX_SNOW_LEOPARD (NSAppKitVersionNumber < 1115 && NSAppKitVersionNumber >= 1038)
#define OSX_LION (NSAppKitVersionNumber < 1162 && NSAppKitVersionNumber >= 1115.2)
#define OSX_MOUNTAIN_LION (NSAppKitVersionNumber < 1244 && NSAppKitVersionNumber >= 1162)
#define OSX_MAVERICKS (NSAppKitVersionNumber < 1334 && NSAppKitVersionNumber >= 1244)
#define OSX_YOSEMITE (NSAppKitVersionNumber >= 1334)
#pragma mark -
#pragma Fixes for OS X Snow Leopard (10.6)
#ifndef MAC_OS_X_VERSION_10_7
enum {
NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7,
NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8
};
enum {
NSApplicationPresentationFullScreen = (1 << 10),
NSApplicationPresentationAutoHideToolbar = (1 << 11)
};
enum {
NSFullScreenWindowMask = 1 << 14
};
enum {
NSWindowAnimationBehaviorDefault = 0, // let AppKit infer animation behavior for this window
NSWindowAnimationBehaviorNone = 2, // suppress inferred animations (don't animate)
NSWindowAnimationBehaviorDocumentWindow = 3,
NSWindowAnimationBehaviorUtilityWindow = 4,
NSWindowAnimationBehaviorAlertPanel = 5
};
typedef NSInteger NSWindowAnimationBehavior;
/* the following is just to fix warnings, not for implementation! */
@interface NSWindow (IntroducedInLion)
- (void)setRestorable:(BOOL)b_value;
- (void)toggleFullScreen:(id)id_value;
- (void)windowWillEnterFullScreen:(NSNotification *)notification;
- (void)windowDidEnterFullScreen:(NSNotification *)notification;
- (void)windowWillExitFullScreen:(NSNotification *)notification;
- (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior;
@end
@interface NSEvent (IntroducedInLion)
- (BOOL)isDirectionInvertedFromDevice;
@end
@interface NSAnimationContext (IntroducedInLion)
+ (void)runAnimationGroup:(void (^)(NSAnimationContext *context))changes completionHandler:(void (^)(void))completionHandler;
@end
#endif
......@@ -57,11 +57,6 @@
_darkInterface = config_GetInt(VLCIntf, "macosx-interfacestyle");
_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD)
_nativeFullscreenMode = var_InheritBool(VLCIntf, "macosx-nativefullscreenmode");
#endif
[o_drop_view setDrawBorder: NO];
[o_play_btn setToolTip: _NS("Play/Pause")];
......@@ -149,7 +144,6 @@
[o_time_sld_fancygradient_view setFrame: frame];
// hide resize view if necessary
if (!OSX_SNOW_LEOPARD)
[o_resize_view setImage: NULL];
if ([[self.bottomBarView window] styleMask] & NSResizableWindowMask)
......
......@@ -304,8 +304,8 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
}
IOReturn success;
/* work-around a bug in 10.7.4 and 10.7.5, so check for 10.7.x < 10.7.4, 10.8 and 10.6 */
if ((NSAppKitVersionNumber >= 1115.2 && NSAppKitVersionNumber < 1138.45) || OSX_MOUNTAIN_LION || OSX_MAVERICKS || OSX_YOSEMITE || OSX_SNOW_LEOPARD) {
/* work-around a bug in 10.7.4 and 10.7.5, so check for 10.7.x < 10.7.4 and 10.8 */
if ((NSAppKitVersionNumber >= 1115.2 && NSAppKitVersionNumber < 1138.45) || OSX_MOUNTAIN_LION || OSX_MAVERICKS || OSX_YOSEMITE) {
CFStringRef reasonForActivity = CFStringCreateWithCString(kCFAllocatorDefault, _("VLC media playback"), kCFStringEncodingUTF8);
if ([o_main activeVideoPlayback])
success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, reasonForActivity, &systemSleepAssertionID);
......
......@@ -162,16 +162,11 @@ static VLCMainWindow *sharedInstance = nil;
BOOL b_splitviewShouldBeHidden = NO;
if (!OSX_SNOW_LEOPARD)
[self setRestorable: NO];
[self setFrameAutosaveName:@"mainwindow"];
/* setup the styled interface */
_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD)
_nativeFullscreenMode = var_InheritBool(VLCIntf, "macosx-nativefullscreenmode");
#endif
[self useOptimizedDrawing: YES];
[[o_search_fld cell] setPlaceholderString: _NS("Search")];
......@@ -215,14 +210,12 @@ static VLCMainWindow *sharedInstance = nil;
[o_dropzone_view setFrame: [o_playlist_table frame]];
[o_left_split_view setFrame: [o_sidebar_view frame]];
if (!OSX_SNOW_LEOPARD) {
/* the default small size of the search field is slightly different on Lion, let's work-around that */
NSRect frame;
frame = [o_search_fld frame];
frame.origin.y = frame.origin.y + 2.0;
frame.size.height = frame.size.height - 1.0;
[o_search_fld setFrame: frame];
}
/* reload the sidebar */
[self reloadSidebar];
......
......@@ -82,11 +82,7 @@
- (void)awakeFromNib
{
b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD)
b_nativeFullscreenMode = var_InheritBool(VLCIntf, "macosx-nativefullscreenmode");
#endif
if (!b_nativeFullscreenMode || OSX_YOSEMITE) {
[o_fullscreen_btn setHidden: YES];
......@@ -122,9 +118,7 @@
- (NSImage *)getButtonImage:(NSString *)o_id
{
NSString *o_name = @"";
if (OSX_SNOW_LEOPARD) {
o_name = @"snowleo-";
} else if (OSX_YOSEMITE) {
if (OSX_YOSEMITE) {
o_name = @"yosemite-";
} else { // OSX_LION, OSX_MOUNTAIN_LION, OSX_MAVERICKS
o_name = @"lion-";
......
......@@ -86,7 +86,6 @@
[[_sv_durTextField formatter] setFormat:[NSString stringWithFormat:@"#,##0.000%@", o_suffix]];
[_sv_durTextField setToolTip: o_toolTip];
if (!OSX_SNOW_LEOPARD)
[_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[self resetValues:self];
......
......@@ -110,7 +110,7 @@
window_rect = [[VLCMainWindow sharedInstance] frame];
NSUInteger mask = NSBorderlessWindowMask;
if (!OSX_SNOW_LEOPARD && !b_video_deco)
if (!b_video_deco)
mask |= NSResizableWindowMask;
BOOL b_no_video_deco_only = !b_video_wallpaper;
......
......@@ -72,7 +72,6 @@
{
[o_window setTitle: _NS("Video Effects")];
[o_window setExcludedFromWindowsMenu:YES];
if (!OSX_SNOW_LEOPARD)
[o_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[[o_tableView tabViewItemAtIndex:[o_tableView indexOfTabViewItemWithIdentifier:@"basic"]] setLabel:_NS("Basic")];
......
......@@ -210,7 +210,7 @@
CGFloat f_deltaX = [theEvent deltaX];
CGFloat f_deltaY = [theEvent deltaY];
if (!OSX_SNOW_LEOPARD && [theEvent isDirectionInvertedFromDevice]) {
if ([theEvent isDirectionInvertedFromDevice]) {
f_deltaX = -f_deltaX;
f_deltaY = -f_deltaY;
}
......
......@@ -58,7 +58,6 @@
self = [super initWithContentRect:contentRect styleMask:styleMask backing:backingType defer:flag];
if (self) {
/* we don't want this window to be restored on relaunch */
if (!OSX_SNOW_LEOPARD)
[self setRestorable:NO];
}
return self;
......@@ -313,11 +312,7 @@
_darkInterface = config_GetInt(VLCIntf, "macosx-interfacestyle");
if (_darkInterface) {
styleMask = NSBorderlessWindowMask;
#ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD)
styleMask |= NSResizableWindowMask;
#endif
styleMask = NSBorderlessWindowMask | NSResizableWindowMask;
}
self = [super initWithContentRect:contentRect styleMask:styleMask
......@@ -335,17 +330,12 @@
- (void)awakeFromNib
{
BOOL b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD)
b_nativeFullscreenMode = var_InheritBool(VLCIntf, "macosx-nativefullscreenmode");
#endif
BOOL b_nativeFullscreenMode = var_InheritBool(VLCIntf, "macosx-nativefullscreenmode");
if (b_nativeFullscreenMode) {
[self setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary];
}
[super awakeFromNib];
}
......
......@@ -91,7 +91,6 @@
- (void)windowDidLoad
{
if (!OSX_SNOW_LEOPARD)
[[self window] setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
/* Get the localized info dictionary (InfoPlist.strings) */
......
......@@ -63,7 +63,6 @@
- (void)awakeFromNib
{
if (!OSX_SNOW_LEOPARD)
[_bookmarksWindow setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
_dataTable.dataSource = self;
......
......@@ -72,7 +72,6 @@
[win setOpaque:NO];
[win setHasShadow: NO];
[win setBackgroundColor:[NSColor clearColor]];
if (!OSX_SNOW_LEOPARD)
[win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
/* let the window sit on top of everything else and start out completely transparent */
......@@ -90,7 +89,6 @@
if (!isInside)
[self mouseExited:NULL];
if (!OSX_SNOW_LEOPARD)
[self setAnimationBehavior:NSWindowAnimationBehaviorNone];
/* get a notification if VLC isn't the active app anymore */
......
......@@ -618,10 +618,8 @@ audio_output_t *getAout(void)
var_AddCallback(p_playlist, "volume", VolumeUpdated, (__bridge void *)self);
var_AddCallback(p_playlist, "mute", VolumeUpdated, (__bridge void *)self);
if (!OSX_SNOW_LEOPARD) {
if ([NSApp currentSystemPresentationOptions] & NSApplicationPresentationFullScreen)
var_SetBool(p_playlist, "fullscreen", YES);
}
/* load our Shared Dialogs nib */
[NSBundle loadNibNamed:@"SharedDialogs" owner: NSApp];
......@@ -644,12 +642,7 @@ audio_output_t *getAout(void)
[o_remote setClickCountEnabledButtons: kRemoteButtonPlay];
[o_remote setDelegate: self];
/* yeah, we are done */
_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD)
_nativeFullscreenMode = var_InheritBool(p_intf, "macosx-nativefullscreenmode");
#endif
if (config_GetInt(VLCIntf, "macosx-icon-change")) {
/* After day 354 of the year, the usual VLC cone is replaced by another cone
......
......@@ -491,7 +491,7 @@ void _drawFrameInRect(NSRect frameRect)
CGFloat f_deltaY = [o_event deltaY];
CGFloat f_deltaX = [o_event deltaX];
if (!OSX_SNOW_LEOPARD && [o_event isDirectionInvertedFromDevice])
if ([o_event isDirectionInvertedFromDevice])
f_deltaX = -f_deltaX; // optimisation, actually double invertion of f_deltaY here
else
f_deltaY = -f_deltaY;
......@@ -595,7 +595,7 @@ void _drawFrameInRect(NSRect frameRect)
CGFloat f_deltaY = [o_event deltaY];
CGFloat f_deltaX = [o_event deltaX];
if (!OSX_SNOW_LEOPARD && [o_event isDirectionInvertedFromDevice])
if ([o_event isDirectionInvertedFromDevice])
f_deltaX = -f_deltaX; // optimisation, actually double invertion of f_deltaY here
else
f_deltaY = -f_deltaY;
......
......@@ -119,7 +119,6 @@ struct display_info_t
- (void)awakeFromNib
{
if (!OSX_SNOW_LEOPARD)
[o_panel setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_panel setTitle: _NS("Open Source")];
......
......@@ -57,7 +57,6 @@
- (void)awakeFromNib
{
[_infoPanel setExcludedFromWindowsMenu: YES];
if (!OSX_SNOW_LEOPARD)
[_infoPanel setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[_infoPanel setTitle: _NS("Media Information")];
......
......@@ -183,7 +183,6 @@
{
p_intf = VLCIntf;
if (!OSX_SNOW_LEOPARD)
[o_prefs_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_prefs_window setHidesOnDeactivate:YES];
......
......@@ -246,7 +246,6 @@ static NSString* VLCHotkeysSettingToolbarIdentifier = @"Hotkeys Settings Item Id
[o_sprefs_toolbar setDelegate: self];
[o_sprefs_win setToolbar: o_sprefs_toolbar];
if (!OSX_SNOW_LEOPARD)
[o_sprefs_win setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
[o_sprefs_win setHidesOnDeactivate:YES];
......@@ -582,14 +581,9 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
[self setupButton: o_intf_fspanel_ckb forBoolValue: "macosx-fspanel"];
[self setupButton: o_intf_nativefullscreen_ckb forBoolValue: "macosx-nativefullscreenmode"];
BOOL b_correct_sdk = NO;
#ifdef MAC_OS_X_VERSION_10_7
b_correct_sdk = YES;
#endif
if (!(b_correct_sdk && !OSX_SNOW_LEOPARD)) {
[o_intf_nativefullscreen_ckb setState: NSOffState];
[o_intf_nativefullscreen_ckb setEnabled: NO];
}
[self setupButton: o_intf_embedded_ckb forBoolValue: "embedded-video"];
......
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