From: Damyan Ivanov Date: Mon, 2 Mar 2009 20:26:33 +0000 (+0200) Subject: rename to icedeb; bts-stamp the bts button X-Git-Tag: 0.2 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=101b6fa7de96b90a611e43467e07739fc52fbd3b;hp=e754f90aea675f92a80513034e2b014a923119d4;p=icedeb.git rename to icedeb; bts-stamp the bts button --- diff --git a/build b/build index 0c8b3d6..7419806 100644 --- a/build +++ b/build @@ -3,7 +3,7 @@ set -e set -u -export PKG=debian-bts@modsoftsys.com +export PKG=icedeb@modsoftsys.com-uuid [ ! -e $PKG.xpi ] || rm $PKG.xpi diff --git a/chrome.manifest b/chrome.manifest index 659f927..b5e1f7c 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -1,5 +1,5 @@ -content debian-bts chrome/ -style chrome://global/content/customizeToolbar.xul chrome://debian-bts/content/button.css +content icedeb chrome/ +style chrome://global/content/customizeToolbar.xul chrome://icedeb/content/icedeb.css # Firefox -overlay chrome://browser/content/browser.xul chrome://debian-bts/content/button.xul +overlay chrome://browser/content/browser.xul chrome://icedeb/content/icedeb.xul diff --git a/chrome/button-1.png b/chrome/button-1.png deleted file mode 100644 index 6ae5a5f..0000000 Binary files a/chrome/button-1.png and /dev/null differ diff --git a/chrome/button-1.xcf b/chrome/button-1.xcf deleted file mode 100644 index 2e104f6..0000000 Binary files a/chrome/button-1.xcf and /dev/null differ diff --git a/chrome/button.css b/chrome/button.css deleted file mode 100644 index f587cf4..0000000 --- a/chrome/button.css +++ /dev/null @@ -1,17 +0,0 @@ -#debian-bts-query-button-1, -#wrapper-debian-bts-query-button-1 -{list-style-image: url("chrome://debian-bts/content/button-1.png");} - -/* common style for all custom buttons */ -.debian-bts-query-button -{-moz-image-region: rect( 0px 24px 24px 0px);} - -.debian-bts-query-button:hover -{-moz-image-region: rect(24px 24px 48px 0px);} - -[iconsize="small"] .debian-bts-query-button -{-moz-image-region: rect( 0px 40px 16px 24px);} - -[iconsize="small"] .debian-bts-query-button:hover -{-moz-image-region: rect(24px 40px 40px 24px);} - diff --git a/chrome/button.js b/chrome/button.js deleted file mode 100644 index 823c2af..0000000 --- a/chrome/button.js +++ /dev/null @@ -1,53 +0,0 @@ -function getClipboardText() { - var clip = Components.classes['@mozilla.org/widget/clipboard;1'] - .getService(Components.interfaces.nsIClipboard); - if (!clip) return null; - - var trans = Components.classes['@mozilla.org/widget/transferable;1'] - .createInstance(Components.interfaces.nsITransferable); - if (!trans) return null; - - trans.addDataFlavor("text/unicode"); - clip.getData(trans, - clip.supportsSelectionClipboard() - ? clip.kSelectionClipboard - : clip.kGlobalClipboard - ); - - var str = new Object; - var strLength = new Object; - trans.getTransferData("text/unicode", str, strLength); - - var text = null; - - if (str) str = str.value.QueryInterface(Components.interfaces.nsISupportsString); - if (str) text = str.data.substring(0, strLength.value / 2); - - return text; -} - -function lookup_bts(in_new) { - var bug = getClipboardText(); - if (!bug) return null; - bug = bug.replace(/^#/, ''); - var uri="http://bugs.debian.org/" + bug; - - if (in_new) { - var b = getBrowser(); - var new_tab = b.addTab(uri); - b.selectedTab = new_tab; - } - else { - loadURI(uri); - } -} - -Debian = { - btsButton: function (e) { - if ( e.button == 0 ) - lookup_bts(false) - else if ( e.button == 1 ) - lookup_bts(true); - } -} - diff --git a/chrome/button.xul b/chrome/button.xul deleted file mode 100644 index 25e0ee5..0000000 --- a/chrome/button.xul +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - -