[vlc-commits] macosx: fixed long-standing issue of disappearing sidebar item icons on some build configurations

Felix Paul Kühne git at videolan.org
Wed Jun 27 19:16:15 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jun 27 18:59:30 2012 +0200| [0664335b7e32ea96e0f57880c5a056f7847f2d7a] | committer: Felix Paul Kühne

macosx: fixed long-standing issue of disappearing sidebar item icons on some build configurations

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

 modules/gui/macosx/PXSourceList.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/PXSourceList.m b/modules/gui/macosx/PXSourceList.m
index a948e98..063d22b 100644
--- a/modules/gui/macosx/PXSourceList.m
+++ b/modules/gui/macosx/PXSourceList.m
@@ -397,7 +397,7 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe
                     }
 
                     //Use 10.6 NSImage drawing if we can
-                    if([icon respondsToSelector:@selector(drawInRect:fromRect:operation:fraction:respectFlipped:hints:)]) {
+                    if(NSAppKitVersionNumber >= 1115.2) { // Lion
                         [icon drawInRect:iconRect
                                 fromRect:NSZeroRect
                                operation:NSCompositeSourceOver



More information about the vlc-commits mailing list