From: Damyan Ivanov Date: Sat, 21 May 2011 05:21:20 +0000 (+0300) Subject: new button for searching mailing lists by msgid X-Git-Tag: 1.6~5 X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=commitdiff_plain;h=967f267a7ad4d2d09057718f32102855184d7f7e new button for searching mailing lists by msgid --- diff --git a/chrome/content/icedeb-ml.png b/chrome/content/icedeb-ml.png new file mode 100644 index 0000000..c24ef17 Binary files /dev/null and b/chrome/content/icedeb-ml.png differ diff --git a/chrome/content/icedeb.css b/chrome/content/icedeb.css index 08e60dd..2bca4e3 100644 --- a/chrome/content/icedeb.css +++ b/chrome/content/icedeb.css @@ -10,6 +10,10 @@ #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);} diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index a8f2e9c..9c39346 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -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); } } diff --git a/chrome/content/icedeb.xul b/chrome/content/icedeb.xul index 746c3d2..af44767 100644 --- a/chrome/content/icedeb.xul +++ b/chrome/content/icedeb.xul @@ -15,6 +15,7 @@ + @@ -40,5 +41,12 @@ class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-deb icedeb-button" /> + + diff --git a/chrome/locale/bg-BG/icedeb.dtd b/chrome/locale/bg-BG/icedeb.dtd index 264c014..198a76a 100644 --- a/chrome/locale/bg-BG/icedeb.dtd +++ b/chrome/locale/bg-BG/icedeb.dtd @@ -4,3 +4,5 @@ + + diff --git a/chrome/locale/en-US/icedeb.dtd b/chrome/locale/en-US/icedeb.dtd index a32d56e..d8651fb 100644 --- a/chrome/locale/en-US/icedeb.dtd +++ b/chrome/locale/en-US/icedeb.dtd @@ -4,3 +4,5 @@ + + diff --git a/install.rdf b/install.rdf index 0c68b48..8398b9f 100644 --- a/install.rdf +++ b/install.rdf @@ -2,7 +2,7 @@ Debian buttons - 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. + 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. Damyan Ivanov {8fb11c5b-84eb-4da0-9128-292eacce2dcb} 1.5 diff --git a/res/button-bts.xcf b/res/button-bts.xcf index 46fe577..0f1c5a6 100644 Binary files a/res/button-bts.xcf and b/res/button-bts.xcf differ