[vlc-commits] macosx: do not use the cone as sidebar icons
    David Fuhrmann 
    git at videolan.org
       
    Sat Nov  1 12:34:44 CET 2014
    
    
  
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Oct 30 22:39:26 2014 +0100| [a4a567cd04f30bc864057d8c8ea59c5e8a193ceb] | committer: David Fuhrmann
macosx: do not use the cone as sidebar icons
The cone does not really fit and looks ugly. Instead, use the
broadcast icon for all internet-related sd's and local icon for
devices category.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4a567cd04f30bc864057d8c8ea59c5e8a193ceb
---
 modules/gui/macosx/MainWindow.m |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 870eee9..00ec109 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -353,16 +353,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
         switch (*p_category) {
             case SD_CAT_INTERNET:
                 [internetItems addObject: [SideBarItem itemWithTitle: _NS(*ppsz_longname) identifier: o_identifier]];
-                if (!strncmp(*ppsz_name, "podcast", 7))
-                    [[internetItems lastObject] setIcon: imageFromRes(@"sidebar-podcast")];
-                else
-                    [[internetItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]];
+                [[internetItems lastObject] setIcon: imageFromRes(@"sidebar-podcast")];
                 [[internetItems lastObject] setSdtype: SD_CAT_INTERNET];
                 [[internetItems lastObject] setUntranslatedTitle: [NSString stringWithUTF8String:*ppsz_longname]];
                 break;
             case SD_CAT_DEVICES:
                 [devicesItems addObject: [SideBarItem itemWithTitle: _NS(*ppsz_longname) identifier: o_identifier]];
-                [[devicesItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]];
+                [[devicesItems lastObject] setIcon: imageFromRes(@"sidebar-local")];
                 [[devicesItems lastObject] setSdtype: SD_CAT_DEVICES];
                 [[devicesItems lastObject] setUntranslatedTitle: [NSString stringWithUTF8String:*ppsz_longname]];
                 break;
    
    
More information about the vlc-commits
mailing list