New Address Book Popup Binding

One of the aims of rewriting the address book interfaces, is also to remove RDF from the address book code base. Up until a few days ago, we had many menu lists of address books based around an RDF builder, these have now been replaced by an xbl binding on the menupopup.

This has several advantages, firstly javascript is now doing the work of building the menu, secondly it is all encapsulated in one area and useable from any dialog we want. In doing this change, we now also have proper tracking of addition/removal/changes of address books for all menus that use the new binding.

There are still a few preference menus based on the old RDF method, however, we are working on replacing them, and there’s still a change we’re working on to the menu binding itself.

For extensions, this is also good news. You can pull in the new binding to your menulist/menupopup on your own dialogs, just specify class="addrbooksPopup" on your menupopup, see the new card dialog xul for an example. There are some attributes you can specify to affect what is displayed, for now its easier to look at the code for the binding; I will be putting up documentation on devmo when it re-opens for edits.

2 thoughts on “New Address Book Popup Binding”

  1. I have searched and searched to find out how to alphabetize the address book list. Is it possible and could someone please tell me how to do it?

  2. @Richard

    At the moment you can’t alphabetise the lists of address book. We are intending on looking at this, but it may not happen before Thunderbird 3 is released. If not, it should happen for the next release of Thunderbird after that.

Comments are closed.