[Pkg-mozext-commits] [SCM] Debian buttons extension for the Iceweasel/Firefox browser branch, master, updated. upstream/1.6-29-gb4c133e

Damyan Ivanov dmn at debian.org
Mon Jan 23 22:15:35 UTC 2012


The following commit has been merged in the master branch:
commit 413fae6cab08eec03000634cd1427148ba3e2967
Author: Damyan Ivanov <dmn at debian.org>
Date:   Mon Jan 23 23:39:33 2012 +0200

    Imported Upstream version 1.7

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..15af1aa
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.xpi
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..61187fe
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+# vim: noet ts=8 ft=makefile
+
+PKG := icedeb
+
+ALL_FILES := README TODO install.rdf chrome.manifest \
+    $(shell find res -type f) $(shell find chrome -type f)
+
+all: $(PKG).xpi
+$(PKG).xpi: $(ALL_FILES)
+	rm -f $@
+	zip $@ $^
+
+XCF := res/button-bts.xcf
+
+chrome/content/icedeb-bts.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "bts small" "bts big"
+chrome/content/icedeb-buildd.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "buildd small" "buildd big"
+chrome/content/icedeb-ddpo.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "DD small" "DD big"
+chrome/content/icedeb-deb.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "deb small" "deb big"
+chrome/content/icedeb-ml.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "ML small" "ML big"
+chrome/content/icedeb-pts.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "pts small" "pts big"
+chrome/content/icedeb-security.png: $(XCF)
+	xcf2png -o "$@" "$<" "base" "security small" "security big"
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..522b811
--- /dev/null
+++ b/TODO
@@ -0,0 +1,2 @@
+* Buttons for pasting clipboard contents to paste.debian.net
+* all buttons could ask for input if no suitable input is given to them
diff --git a/build b/build
new file mode 100644
index 0000000..62e4af7
--- /dev/null
+++ b/build
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+set -u
+
+export PKG=icedeb
+
+btn2png() {
+    local tag="$1"
+    local btn="${2:-$tag}"
+
+    xcf2png -o "chrome/content/$PKG-$btn.png" res/button-bts.xcf "base" "$tag small" "$tag big"
+}
+
+btn2png bts
+btn2png pts
+btn2png deb
+btn2png ML ml
+btn2png DD ddpo
+btn2png buildd
+btn2png security
+
+[ ! -e $PKG.xpi ] || rm $PKG.xpi
+
+zip -r $PKG.xpi chrome install* chrome.manifest README TODO res
diff --git a/chrome/content/icedeb-bts.png b/chrome/content/icedeb-bts.png
index 5f4b36f..c691b25 100644
Binary files a/chrome/content/icedeb-bts.png and b/chrome/content/icedeb-bts.png differ
diff --git a/chrome/content/icedeb-buildd.png b/chrome/content/icedeb-buildd.png
new file mode 100644
index 0000000..977755f
Binary files /dev/null and b/chrome/content/icedeb-buildd.png differ
diff --git a/chrome/content/icedeb-ddpo.png b/chrome/content/icedeb-ddpo.png
index 17b81ac..2bd850e 100644
Binary files a/chrome/content/icedeb-ddpo.png and b/chrome/content/icedeb-ddpo.png differ
diff --git a/chrome/content/icedeb-deb.png b/chrome/content/icedeb-deb.png
index e349c6e..3718c76 100644
Binary files a/chrome/content/icedeb-deb.png and b/chrome/content/icedeb-deb.png differ
diff --git a/chrome/content/icedeb-ml.png b/chrome/content/icedeb-ml.png
index c24ef17..90eaee8 100644
Binary files a/chrome/content/icedeb-ml.png and b/chrome/content/icedeb-ml.png differ
diff --git a/chrome/content/icedeb-pts.png b/chrome/content/icedeb-pts.png
index c24902f..d13f38e 100644
Binary files a/chrome/content/icedeb-pts.png and b/chrome/content/icedeb-pts.png differ
diff --git a/chrome/content/icedeb-security.png b/chrome/content/icedeb-security.png
new file mode 100644
index 0000000..b45ab7d
Binary files /dev/null and b/chrome/content/icedeb-security.png differ
diff --git a/chrome/content/icedeb.css b/chrome/content/icedeb.css
index c0f09fd..acd8e43 100644
--- a/chrome/content/icedeb.css
+++ b/chrome/content/icedeb.css
@@ -18,6 +18,14 @@
 #wrapper-icedeb-ddpo
 {list-style-image: url("chrome://icedeb/content/icedeb-ddpo.png");}
 
+#icedeb-buildd,
+#wrapper-icedeb-buildd
+{list-style-image: url("chrome://icedeb/content/icedeb-buildd.png");}
+
+#icedeb-security,
+#wrapper-icedeb-security
+{list-style-image: url("chrome://icedeb/content/icedeb-security.png");}
+
 /* common style for all custom buttons */
 .icedeb-button
 {-moz-image-region: rect( 0px 24px 24px  0px);}
diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js
index 236112a..e6c7adb 100644
--- a/chrome/content/icedeb.js
+++ b/chrome/content/icedeb.js
@@ -114,6 +114,36 @@ IceDeb = {
             loadURI(uri);
         }
     },
+    lookup_buildd: function(in_new) {
+        var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        var uri="https://buildd.debian.org/";
+
+        if (keyword) uri += keyword;
+
+        if (in_new) {
+            var b = getBrowser();
+            var new_tab = b.addTab(uri);
+            b.selectedTab = new_tab;
+        }
+        else {
+            loadURI(uri);
+        }
+    },
+    lookup_security: function(in_new) {
+        var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        var uri="http://security-tracker.debian.org/";
+
+        if (keyword) uri += "tracker/" + keyword;
+
+        if (in_new) {
+            var b = getBrowser();
+            var new_tab = b.addTab(uri);
+            b.selectedTab = new_tab;
+        }
+        else {
+            loadURI(uri);
+        }
+    },
 
     btsButton: function (e) {
         if ( e.button == 0 )
@@ -144,6 +174,18 @@ IceDeb = {
             IceDeb.lookup_ddpo(false)
         else if ( e.button == 1 )
             IceDeb.lookup_ddpo(true);
+    },
+    builddButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_buildd(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_buildd(true);
+    },
+    securityButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_security(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_security(true);
     }
 }
 
diff --git a/chrome/content/icedeb.xul b/chrome/content/icedeb.xul
index d173358..7b8e347 100644
--- a/chrome/content/icedeb.xul
+++ b/chrome/content/icedeb.xul
@@ -17,6 +17,8 @@
   <toolbarbutton id="icedeb-deb"/>
   <toolbarbutton id="icedeb-ml"/>
   <toolbarbutton id="icedeb-ddpo"/>
+  <toolbarbutton id="icedeb-buildd"/>
+  <toolbarbutton id="icedeb-security"/>
   </toolbarpalette>
 
 
@@ -56,5 +58,19 @@
   class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-ddpo icedeb-button"
   />
 
+<toolbarbutton id="icedeb-buildd"
+  label="&buildd.label;"
+  tooltiptext="&buildd.tooltiptext;"
+  onclick="IceDeb.builddButton(event)"
+  class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-buildd icedeb-button"
+  />
+
+<toolbarbutton id="icedeb-security"
+  label="&security.label;"
+  tooltiptext="&security.tooltiptext;"
+  onclick="IceDeb.securityButton(event)"
+  class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-security icedeb-button"
+  />
+
 </overlay>
 
diff --git a/chrome/locale/bg-BG/icedeb.dtd b/chrome/locale/bg-BG/icedeb.dtd
index 550f8ae..9d2f584 100644
--- a/chrome/locale/bg-BG/icedeb.dtd
+++ b/chrome/locale/bg-BG/icedeb.dtd
@@ -8,3 +8,7 @@
 <!ENTITY ml.tooltiptext "Търсене по идентификатор на съобщение в пощенските списъци на Дебиан">
 <!ENTITY ddpo.label "Обзор">
 <!ENTITY ddpo.tooltiptext "Обобщена информация за пакетите на даден разработчик на Дебиан">
+<!ENTITY buildd.label "журнали от компилацията">
+<!ENTITY buildd.tooltiptext "Информация от системите за автоматично компилиране на пакети">
+<!ENTITY security.label "информация за сигурността">
+<!ENTITY security.tooltiptext "Информация от сигурността на пакет или доклад на mitre.org (CVE)">
diff --git a/chrome/locale/en-US/icedeb.dtd b/chrome/locale/en-US/icedeb.dtd
index d45e5b7..86270eb 100644
--- a/chrome/locale/en-US/icedeb.dtd
+++ b/chrome/locale/en-US/icedeb.dtd
@@ -8,3 +8,7 @@
 <!ENTITY ml.tooltiptext "Search Debian mailing list by message ID">
 <!ENTITY ddpo.label "DDPO">
 <!ENTITY ddpo.tooltiptext "Show an overview of Debian developer contributions">
+<!ENTITY buildd.label "build logs">
+<!ENTITY buildd.tooltiptext "Show logs from Debian auto-builders">
+<!ENTITY security.label "security information">
+<!ENTITY security.tooltiptext "Information about package security status or mitre.org report (CVE)">
diff --git a/install.rdf b/install.rdf
index d1dc42f..4eb32dc 100644
--- a/install.rdf
+++ b/install.rdf
@@ -5,7 +5,7 @@
     <em:description>Buttons for querying Debian-related pages using the text in the clipboard. Place some text in the clipboard (package name, bug number, message-ID, developer ID/email) and click on one of the buttons. Clicking with the middle mouse button opens a new tab.</em:description>
     <em:creator>Damyan Ivanov</em:creator>
     <em:id>{8fb11c5b-84eb-4da0-9128-292eacce2dcb}</em:id>
-    <em:version>1.6</em:version>
+    <em:version>1.7</em:version>
     <em:homepageURL />
     <em:type>2</em:type> <!-- type=extension -->
     <em:iconURL>chrome://icedeb/content/icon.png</em:iconURL>
diff --git a/res/button-bts.xcf b/res/button-bts.xcf
index 2825bee..5d66e07 100644
Binary files a/res/button-bts.xcf and b/res/button-bts.xcf differ

-- 
Debian buttons extension for the Iceweasel/Firefox browser



More information about the Pkg-mozext-commits mailing list