#wrapper-icedeb-pts
{list-style-image: url("chrome://icedeb/content/icedeb-pts.png");}
+#icedeb-deb,
+#wrapper-icedeb-deb
+{list-style-image: url("chrome://icedeb/content/icedeb-deb.png");}
+
/* common style for all custom buttons */
.icedeb-button
{-moz-image-region: rect( 0px 24px 24px 0px);}
}
}
+function lookup_deb(in_new) {
+ var pkg = getClipboardText();
+ if (!pkg) return null;
+ var uri="http://packages.debian.org/" + pkg;
+
+ 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_pts(false)
else if ( e.button == 1 )
lookup_pts(true);
+ },
+ debButton: function (e) {
+ if ( e.button == 0 )
+ lookup_deb(false)
+ else if ( e.button == 1 )
+ lookup_deb(true);
}
}
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="icedeb-bts"/>
<toolbarbutton id="icedeb-pts"/>
+ <toolbarbutton id="icedeb-deb"/>
</toolbarpalette>
class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-pts icedeb-button"
/>
+<toolbarbutton id="icedeb-deb"
+ label=".deb info"
+ tooltiptext="Show information about binary deb pacckage"
+ onclick="Debian.debButton(event)"
+ class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-deb icedeb-button"
+ />
+
</overlay>
em:creator="Damyan Ivanov"
em:id="icedeb@modsoftsys.com-uuid"
- em:version="0.3"
+ em:version="0.4"
em:homepageURL=""
em:iconURL="chrome://icedeb/content/icon.png" >