Media View Toggle Buttons

Tuesday, Feb 2. 2010  –  Category: Songbird  –  22 Comments

Picture 3One of the things implemented in Purple Rain (the new Feather in Songbird 1.4) was direct toggle buttons to select the current Media View.  However, we only implemented them for the built in List View & Filter View buttons.  Third party Media Views were still only listed in the arrow-drop-down menu button next to them.  I’m happy to say that we’ve landed bug 18538 on trunk yesterday which will allow Media View developers to create and define icons to represent their Media View.  They will be automatically inserted into the row of buttons to allow users to more easily switch to the available views.

All the Media View developer needs to do is create an icon file.  It must be 22×80, with all four 22×20 states (normal, hover, active, and disabled) vertically stacked in it.  Here’s a sample one I created for John M’s excellent Grid View:

mpIconAll that’s left is to point to it inside the Media View’s install.rdf file.  In the same <songbird:mediaPage> section we simply define a new <songbird:contentIcon> value, like so:

<songbird:mediaPage>
   <Description>
        <songbird:contentIcon>chrome://gridview/skin/mpIcon.png</songbird:contentIcon>
        <songbird:contentTitle>Grid View</songbird:contentTitle>
        <songbird:contentUrl>chrome://gridview/content/media-page.xul</songbird:contentUrl>
    </Description>
</songbird:mediaPage>

That’s all there is to it!


Previous posts

More posts


Photos

2010-01-28 13.06.21.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 13.06.08.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 13.06.03.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.29.41.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.37.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.26.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.16.jpg from Snowboarding at Kirkwood with Tyler & Nick2010-01-28 12.28.07.jpg from Snowboarding at Kirkwood with Tyler & Nick

More photos


Tweets

@bubbva i know tons of folks who go to both... sounds like a good time :)
(Thu, Mar 11. 2010, 09:37)
@bubbva they're more or less combined i suppose in that it's the same organisers, with heavy audience overlap... ?
(Thu, Mar 11. 2010, 09:37)
@bubbva SXSW != SXSWi (interactive): http://sxsw.com/interactive
(Thu, Mar 11. 2010, 09:31)
@geoffarnold good question. i've always just used #manu
(Wed, Mar 10. 2010, 19:02)
also amazed to see the amount of coverage the Red Knights got... green/gold was *everywhere*.
(Wed, Mar 10. 2010, 13:44)
milan was completely outclassed. good to see fletcher get a goal. two EPL teams into the quarters! #ManU
(Wed, Mar 10. 2010, 13:43)