vlc | branch: master | Felix Paul Kühne <[email protected]> | 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to