From 9c0f9450341bf66a1c317322527427a7b834ae28 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 20 Jan 2012 22:26:31 +0200 Subject: [PATCH] add security-tracker button Suggested by Paul Wise --- chrome/content/icedeb-security.png | Bin 0 -> 1245 bytes chrome/content/icedeb.css | 4 ++++ chrome/content/icedeb.js | 21 +++++++++++++++++++++ chrome/content/icedeb.xul | 8 ++++++++ chrome/locale/bg-BG/icedeb.dtd | 2 ++ chrome/locale/en-US/icedeb.dtd | 2 ++ res/button-bts.xcf | Bin 12505 -> 13796 bytes 7 files changed, 37 insertions(+) create mode 100644 chrome/content/icedeb-security.png diff --git a/chrome/content/icedeb-security.png b/chrome/content/icedeb-security.png new file mode 100644 index 0000000000000000000000000000000000000000..b45ab7d6da03f02874aff9bb4e92abe3d9fe50f9 GIT binary patch literal 1245 zcmV<31S0#1P)WP%wsqH6%Wmz?1)oiarqu z#%kaJ)I`xVCfaVDR#4ESLI{Br1A;k)LTQUg4K1`o3+$O`uMhiNbLMiU_MzoVPR>1h zuf6xT*Iw&e`?eeh%B)y`uV4ip#!d`ja~{L)}z-$mA7aug5YMSL%hVb5_8`zY?hGVH=Ln7~CiUvj{;c?_={lVF(@7hw}dtET*H{AHZ^qVGswfCXeAS$C&fHiogJF&11N$uYWCmCVBP3Jcfxzf@M~W;z`WIA*{y_ z^B4{^*j|jyI1AG#@)))>*v-WQ)ds)X^H77`wfGHg$z!;!-C)qd#){lttjuHhP7^uE zV|Y~Zs^l5@)+*LjxsCSRe!*l?;u#Q{xKfGb$JX2`&TKm zVotT|u_}prB>#>-;2>UTAoyYYzBW$_i}M(^RpaB~I6P2wcQL<-;FUNH-_K*1Y#?_r zepT5-TwZ3ydut|Ju@FZZ2=2>cc)PZtE@rH8x|e!<&cu&MF;mA{JdeLNkb7U%|HV9p zsjB&@KC^#R@22ECTxP{k9>bf^wPs+usgW`(hW5tSCr1sxXORouD6=^q!E{fu`aQS= zp)Qm)+=BHra{t4NzBH%$c}DgAP{a70k~D!Q%xmkm@5b#5vU#7J%%+!Y&z|}wuE3Xj zcKsfll2pA3qu9~ZvCuDiN7s?!_|FYyPvYCsDOl>BDU)`US#hUSmCnLX@)!=)2laa} z;CyhQ;%KKN>1ojZL9Mb9?WCdn#b^&irhM>D0G_$ z{#)%B>S$@*kCnae9dlQYY_n=;k5>;vl`J>m-lp++3>*3Sw1?PNW zV9|4}RL*)>C575x)0qAk+=)w?3_Edh_mNJv0k@S|@icyiVO)x{@wGgLhh`%O<45)! z!qixM{+?eBe(L%>h8v|aIxcyvg>T?~N$^`Um*|TsRma(on5(WOXrgN%narY(j_3n=gh1k0e47xc2aQ%o;a^{ z+I>GCTpoKFTVbE%o!(QAnb)PDepj#%H_va)d2VHUWU|bP;i`Q<-apHjca7lPSS)GM zCpy}1lvy!RX2lBpx_X8sG2c)dw+TPM+!IZxU#Pc98Z?1>CLLXi&tu)6I+vCMS_60% zf0N>_hnw&*=`MIeljNBH>gp)7;xc?3f5h{73==1k$ZYs8%b1-H(E3K500000NkvXX Hu0mjfQF>%Y literal 0 HcmV?d00001 diff --git a/chrome/content/icedeb.css b/chrome/content/icedeb.css index 6be7df7..acd8e43 100644 --- a/chrome/content/icedeb.css +++ b/chrome/content/icedeb.css @@ -22,6 +22,10 @@ #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 742ca82..e6c7adb 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -129,6 +129,21 @@ IceDeb = { 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 ) @@ -165,6 +180,12 @@ IceDeb = { 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 b7bdf6f..7b8e347 100644 --- a/chrome/content/icedeb.xul +++ b/chrome/content/icedeb.xul @@ -18,6 +18,7 @@ + @@ -64,5 +65,12 @@ class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-buildd icedeb-button" /> + + diff --git a/chrome/locale/bg-BG/icedeb.dtd b/chrome/locale/bg-BG/icedeb.dtd index 1ef9f1d..9d2f584 100644 --- a/chrome/locale/bg-BG/icedeb.dtd +++ b/chrome/locale/bg-BG/icedeb.dtd @@ -10,3 +10,5 @@ + + diff --git a/chrome/locale/en-US/icedeb.dtd b/chrome/locale/en-US/icedeb.dtd index 97aace9..86270eb 100644 --- a/chrome/locale/en-US/icedeb.dtd +++ b/chrome/locale/en-US/icedeb.dtd @@ -10,3 +10,5 @@ + + diff --git a/res/button-bts.xcf b/res/button-bts.xcf index afb442774e9dafb4044eac71b3dd2679775bc9d0..5d66e0759ddc6362b341aca5c54ac1782df40756 100644 GIT binary patch delta 1214 zcmY+ET}V_x6vxlp{od8p+v;`K-L+k9$I{q(h`t1g=t0TK?1Mfe(^86xNbMndP>3E1 zABurUDJW3;un+7~FJ=YdTT+HTSQbHoRJvO}q$zqkb9b(A&oVpA@18m5f6tk@qqXCw zt`&K*03d_lUk20Rk%lft_8|2=DICX;Afj`ZCl`X)yZXC`@SD zJp9^#FH=1a6BQVdFSNOC*#3D@gSvzUejb4rf~Vn9(^FC<)Vebe(zQw)>smW>tv!;V zb&%c3+|y#OK?iO|9F%HrN+E;UFY$E?u`Z2D_*6A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