From 5a38bb6a8431ac65a7f47b489debb6532914e599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Qu=C3=A8ze?= Date: Sat, 11 Aug 2007 18:13:41 +0200 Subject: [PATCH] Add an account.xul window with a list of the supported protocols. --- im/base/content/instantbird/account.js | 19 +++++++++++++++++++ im/base/content/instantbird/account.xul | 18 ++++++++++++++++++ im/base/content/instantbird/instantbird.xul | 1 + .../en-US/chrome/instantbird/account.dtd | 1 + im/themes/winstripe/instantbird/account.css | 0 5 files changed, 39 insertions(+) create mode 100644 im/base/content/instantbird/account.js create mode 100644 im/base/content/instantbird/account.xul create mode 100644 im/locales/en-US/chrome/instantbird/account.dtd create mode 100644 im/themes/winstripe/instantbird/account.css 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 @@ + + + + + + + +