From 233b8f5208d72f460fcb8637c27d8109b39dd940 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 20 Jan 2012 21:12:55 +0200 Subject: [PATCH] add a button showung buildd logs Suggested by Paul Wise --- chrome/content/icedeb-buildd.png | Bin 0 -> 1182 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 11065 -> 12505 bytes 7 files changed, 37 insertions(+) create mode 100644 chrome/content/icedeb-buildd.png diff --git a/chrome/content/icedeb-buildd.png b/chrome/content/icedeb-buildd.png new file mode 100644 index 0000000000000000000000000000000000000000..c464f9d356ae503610f88f72b3e9dff421dc11c7 GIT binary patch literal 1182 zcmV;P1Y!G$P)Px(SV=@dR7l6gmtAZXMHI(>ds{lCB5lD&f>^Bu>=;6fZJ-2W(uyQjsu{5ojaWb9 zgC7rSh@yzRAb}W*f(b?w#Rp9U23rhDEU6{NNRWtPrdnwEP(cxFn^ro#_jY~gtXbE+ z{V)~J%icZbKWG1Y=A8e|^%#X2p{4vxzQ-Ktqq}97(a1((&?gbwWDiniT2D}fflvcl#hyi%O zc1P|sP$R8g6-N$0TK$EqhLQM)mT7VKD9rF3^`kS=6Kk!MbeIWb{KcABUpDDmAfS(=VupBr7 zG{=y;)Wz?XRwteNPz3hPF!I%Bgvygv|1re6E~|~?3?o$DY5V&?6)ntUe$t5CYk^cC zS}>#1>%vG*NgxK$|%93~(#( zK!A%@FzHl1&WeHdxIhVS2V0lp`uLLw^sTHv*gD2>u-2hOl{fyMdbEzJ22DGY(LjcY-s0u16;UPXJrv*0=fHz5S%m1FOdJ z%}zuntpm6!g7E=T-rydf(g;-vFzft|A1i3;tD+@kgerA|wOU%;9LWjrIIuUx;M49i z7ufT_Uf{7zJ};EaGeSKHERt5&LaojDXngc$?cDD7@6lzG>yPXX?1!y zqCT(==q>Z|?d}PSIznFw|8D~e`+?qUybYORE|S{ zdI~?8Ddx_J<7$2&vgO{?qKn8*8=C#TvSHV*=? wORMdL++uIEKqJ&*U_S5>a70?&b0G-+3Htr2gQIn;mjD0&07*qoM6N<$f*+<6@&Et; literal 0 HcmV?d00001 diff --git a/chrome/content/icedeb.css b/chrome/content/icedeb.css index c0f09fd..6be7df7 100644 --- a/chrome/content/icedeb.css +++ b/chrome/content/icedeb.css @@ -18,6 +18,10 @@ #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");} + /* 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..742ca82 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -114,6 +114,21 @@ 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); + } + }, btsButton: function (e) { if ( e.button == 0 ) @@ -144,6 +159,12 @@ 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); } } diff --git a/chrome/content/icedeb.xul b/chrome/content/icedeb.xul index d173358..b7bdf6f 100644 --- a/chrome/content/icedeb.xul +++ b/chrome/content/icedeb.xul @@ -17,6 +17,7 @@ + @@ -56,5 +57,12 @@ class="toolbarbutton-1 chromeclass-toolbar-additional icedeb-ddpo icedeb-button" /> + + diff --git a/chrome/locale/bg-BG/icedeb.dtd b/chrome/locale/bg-BG/icedeb.dtd index 550f8ae..1ef9f1d 100644 --- a/chrome/locale/bg-BG/icedeb.dtd +++ b/chrome/locale/bg-BG/icedeb.dtd @@ -8,3 +8,5 @@ + + diff --git a/chrome/locale/en-US/icedeb.dtd b/chrome/locale/en-US/icedeb.dtd index d45e5b7..97aace9 100644 --- a/chrome/locale/en-US/icedeb.dtd +++ b/chrome/locale/en-US/icedeb.dtd @@ -8,3 +8,5 @@ + + diff --git a/res/button-bts.xcf b/res/button-bts.xcf index 2825bee449eeec1e2194722bdacacfb39f1c0798..afb442774e9dafb4044eac71b3dd2679775bc9d0 100644 GIT binary patch delta 1204 zcmaizPiPZC6vp37*2E;6ZNl1Q(@kVoWl0V~4>=U9pkB;LEd{Z9vNV)Jm4X#29wHQ_ zrlQgXt%#c9O|Yd-LF~ngAQV(Qik{R{3u=>sf9v{YGf5pm9eDF*fBVh1^LF1pI{fPR z)k9=@zGsN^eg;tP0)(yuL2|BsRIS`-X>8Qm*3Ts)=?wc83XpQ(i|}e1 zDR>}NW=e)%m*GY$*1-b`KU>oe?|)zs6*H?Pl$BPiV)6=w;tGlg8S5v%+wS+6|7K4!)EsfHaSEvP^&#`AP`J@ z%C?6)sT2PyI6sfp&?dM)AA%*a>`Zi+I{IV-LmOt{tKX5CKF6ZkG3q3n{oRiDg>TXl zTEUW?>{9#|b&MB+^F6}XcqcQX&JOBb)G>Do&i^IhYwneq*~9L)pQTRrx$ME;L-wuA zvNd+V*h3wwAbW7FRg{@^ge`P*6UV+Lcn&jfY}DHKWM(h2WafRy$ya60wfO~^<)1KX HM>_Ni^GElX delta 633 zcmY+>u}i~16bA5@OK6*>NfTmfnp9B?r-G=XU7SQW=;v!RrC~}=~hEO&@+=1