[vlc-commits] macosx: fix compatibility header for compilation on 10.6

Felix Paul Kühne git at videolan.org
Mon Jul 29 00:37:16 CEST 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 29 00:23:06 2013 +0200| [eab840c2a23459ddba3c61e3de1f6c04a57df01d] | committer: Felix Paul Kühne

macosx: fix compatibility header for compilation on 10.6
(cherry picked from commit f8d6e49280f4e2561ed2f40704ea8f9792d023af)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=eab840c2a23459ddba3c61e3de1f6c04a57df01d
---

 modules/gui/macosx/CompatibilityFixes.h |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/gui/macosx/CompatibilityFixes.h b/modules/gui/macosx/CompatibilityFixes.h
index 61d49ed..eae593b 100644
--- a/modules/gui/macosx/CompatibilityFixes.h
+++ b/modules/gui/macosx/CompatibilityFixes.h
@@ -44,6 +44,15 @@ enum {
     NSApplicationPresentationAutoHideToolbar            = (1 << 11)
 };
 
+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;
@@ -51,6 +60,7 @@ enum {
 - (void)windowWillEnterFullScreen:(NSNotification *)notification;
 - (void)windowDidEnterFullScreen:(NSNotification *)notification;
 - (void)windowWillExitFullScreen:(NSNotification *)notification;
+- (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior;
 @end
 
 @interface NSEvent (IntroducedInLion)



More information about the vlc-commits mailing list