vlc/vlc-2.0 | branch: master | Felix Paul Kühne <[email protected]> | Wed 
Jun 27 18:59:30 2012 +0200| [bdd4d52f11a933c5f37ad420c64b8be455dbbfa5] | 
committer: Felix Paul Kühne

macosx: fixed long-standing issue of disappearing sidebar item icons on some 
build configurations
(cherry picked from commit 0664335b7e32ea96e0f57880c5a056f7847f2d7a)

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

 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 9846a3c..58737dc 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