]> git.ktnx.net Git - icedeb.git/commitdiff
new button for searching mailing lists by msgid
authorDamyan Ivanov <dmn@debian.org>
Sat, 21 May 2011 05:21:20 +0000 (08:21 +0300)
committerDamyan Ivanov <dmn@debian.org>
Sat, 21 May 2011 05:36:59 +0000 (08:36 +0300)
chrome/content/icedeb-ml.png [new file with mode: 0644]
chrome/content/icedeb.css
chrome/content/icedeb.js
chrome/content/icedeb.xul
chrome/locale/bg-BG/icedeb.dtd
chrome/locale/en-US/icedeb.dtd
install.rdf
res/button-bts.xcf

diff --git a/chrome/content/icedeb-ml.png b/chrome/content/icedeb-ml.png
new file mode 100644 (file)
index 0000000..c24ef17
Binary files /dev/null and b/chrome/content/icedeb-ml.png differ
index 08e60ddbbe5e960f637e411f2ab4898255c87f57..2bca4e364bab0bc59b2d3796496a3d65fadd34b1 100644 (file)
 #wrapper-icedeb-deb
 {list-style-image: url("chrome://icedeb/content/icedeb-deb.png");}
 
+#icedeb-ml,
+#wrapper-icedeb-ml
+{list-style-image: url("chrome://icedeb/content/icedeb-ml.png");}
+
 /* common style for all custom buttons */
 .icedeb-button
 {-moz-image-region: rect( 0px 24px 24px  0px);}
index a8f2e9c095ce3ea569c2aa2f0d7525bcc36d7b84..9c393462bca055985bcc77c96c320bd50705dafb 100644 (file)
@@ -85,6 +85,20 @@ IceDeb = {
             loadURI(uri);
         }
     },
+    lookup_ml: function(in_new) {
+        var msg_id = IceDeb.trim_keyword(IceDeb.getClipboardText());
+        if (!msg_id) msg_id = '';
+        var uri="http://lists.debian.org/msgid-search/" + msg_id;
+
+        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 )
@@ -103,6 +117,12 @@ IceDeb = {
             IceDeb.lookup_deb(false)
         else if ( e.button == 1 )
             IceDeb.lookup_deb(true);
+    },
+    mlButton: function (e) {
+        if ( e.button == 0 )
+            IceDeb.lookup_ml(false)
+        else if ( e.button == 1 )
+            IceDeb.lookup_ml(true);
     }
 }
 
index 746c3d2062edb98ebdb41cb02d55217e344f4005..af44767abd6b2f467da85f7bd24405ad7ee8edc9 100644 (file)
@@ -15,6 +15,7 @@
   <toolbarbutton id="icedeb-bts"/>
   <toolbarbutton id="icedeb-pts"/>
   <toolbarbutton id="icedeb-deb"/>
+  <toolbarbutton id="icedeb-ml"/>
   </toolbarpalette>
 
 
   class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-deb icedeb-button"
   />
 
+<toolbarbutton id="icedeb-ml"
+  label="&ml.label;"
+  tooltiptext="&ml.tooltiptext;"
+  onclick="IceDeb.mlButton(event)"
+  class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-ml icedeb-button"
+  />
+
 </overlay>
 
index 264c014af1414949e5fdfaff5f73be35a33c6f10..198a76a8e8b9c1c085817bd4da5cded0c853b26c 100644 (file)
@@ -4,3 +4,5 @@
 <!ENTITY pts.tooltiptext "Запитване до системата за следене на пакети на Дебиан">
 <!ENTITY deb.label ".deb пакет">
 <!ENTITY deb.tooltiptext "Информация за пакет">
+<!ENTITY ml.label "Списъци">
+<!ENTITY ml.tooltiptext "Търсене по идентификатор на съобщение в пощенските списъци на Дебиан">
index a32d56e7adf74953c1ed2691d1ab8c45a71d682e..d8651fb130d0976e8402bd8de1394ceed5a321fb 100644 (file)
@@ -4,3 +4,5 @@
 <!ENTITY pts.tooltiptext "Query Debian Package tracking system using the text in the clipboard">
 <!ENTITY deb.label ".deb info">
 <!ENTITY deb.tooltiptext "Show information about binary deb package">
+<!ENTITY ml.label "Debian ML">
+<!ENTITY ml.tooltiptext "Search Debian mailing list by message ID">
index 0c68b48e3da5d3a5ed45d88a44c48f273d1da60c..8398b9f5d3251af240bd1206d7c981cf4fceb22a 100644 (file)
@@ -2,7 +2,7 @@
 <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
   <Description about="urn:mozilla:install-manifest">
     <em:name>Debian buttons</em:name>
-    <em:description>Collection of buttons for querying Debian-related pages using the text in the clipboard. Place some text in the clipboard (package name, bug number) and click on one of the buttons. Clicking with the middle mouse button opens a new tab.</em:description>
+    <em:description>Collection of buttons for querying Debian-related pages using the text in the clipboard. Place some text in the clipboard (package name, bug number, message-ID) 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.5</em:version>
index 46fe5777e23351d0502edf212be31cb966e014bb..0f1c5a67bce39c7e1e556c92df6b7dc3b15cc96f 100644 (file)
Binary files a/res/button-bts.xcf and b/res/button-bts.xcf differ