Media View Toggle Buttons
Tuesday, Feb 2. 2010 – Category: Songbird – 5 Comments
One 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:
All 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
- Updated locations for Concerts
(Monday, Feb 1. 2010 – Songbird – 4 Comments) - Philips & Songbird
(Friday, Jan 8. 2010 – OpenSource – 5 Comments) - the post-release post
(Monday, Jan 4. 2010 – Songbird – 57 Comments) - AIDS Ride, first official training ride down
(Sunday, Jan 3. 2010 – Outdoors – No Comments) - Office rodent infestation
(Friday, Dec 18. 2009 – Photos – 20 Comments) - Songbird 1.4.1 add-on update guides
(Sunday, Dec 13. 2009 – Songbird – 22 Comments)
Photos
Tweets
(Mon, Feb 08. 2010, 12:11)
(Mon, Feb 08. 2010, 10:15)
(Mon, Feb 08. 2010, 09:43)
(Mon, Feb 08. 2010, 08:27)
(Sun, Feb 07. 2010, 20:50)
(Sun, Feb 07. 2010, 13:32)
More Posts
Songbird
- Media View Toggle Buttons
(Tuesday, Feb 2. 2010 – 5 Comments) - Updated locations for Concerts
(Monday, Feb 1. 2010 – 4 Comments) - Philips & Songbird
(Friday, Jan 8. 2010 – 5 Comments) - the post-release post
(Monday, Jan 4. 2010 – 57 Comments) - Office rodent infestation
(Friday, Dec 18. 2009 – 20 Comments)
OpenSolaris
- OSDC.tw: making conferences fun again
(Sunday, Apr 19. 2009 – 1 Comment) - Dovecot 1.1.11 + managesieve + CMU Sieve Solaris pkgs
(Wednesday, Mar 11. 2009 – 2 Comments) - Dear Sun, learn to trust your own community.
(Thursday, Jan 15. 2009 – 6 Comments) - YABS on Songbird on OpenSolaris
(Wednesday, Dec 17. 2008 – No Comments) - FOSSCamp
(Friday, Dec 5. 2008 – 2 Comments)








