diff --git a/im/base/content/instantbird/account.js b/im/base/content/instantbird/account.js new file mode 100644 index 0000000000..1712acac16 --- /dev/null +++ b/im/base/content/instantbird/account.js @@ -0,0 +1,19 @@ +const Ci = Components.interfaces; + +var account = { + onload: function account_onload() { + var protoList = document.getElementById("protolist"); + var pcs = Components.classes["@instantbird.org/purple/core;1"] + .getService(Ci.purpleICoreService); + var protocols = pcs.getProtocols(); + while (protocols.hasMoreElements()) { + var proto = protocols.getNext().QueryInterface(Ci.purpleIProtocol); + dump(" " + proto.name + " " + proto.id + "\n"); + var id = proto.id; + var item = protoList.appendItem(proto.name, id, "toto"); + item.setAttribute("image", "chrome://instantbird/skin/prpl/" + id + ".png"); + item.setAttribute("class", "menuitem-iconic"); + } + protoList.selectedIndex = 0; + } +}; diff --git a/im/base/content/instantbird/account.xul b/im/base/content/instantbird/account.xul new file mode 100644 index 0000000000..042c33561d --- /dev/null +++ b/im/base/content/instantbird/account.xul @@ -0,0 +1,18 @@ + + + + + + + +