[Pkg-mozext-commits] [sieve-extension] 01/02: Add patch to remove donation button from UI (Closes: #782706).

Michael Fladischer fladi at moszumanska.debian.org
Tue Feb 14 15:02:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to annotated tag debian/0.2.3h+dfsg-2
in repository sieve-extension.

commit 9125e621ebe703c4b85a878fa86dd493cd76a49c
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Tue Feb 14 15:45:50 2017 +0100

    Add patch to remove donation button from UI (Closes: #782706).
---
 debian/changelog                          |   1 +
 debian/patches/remove_donate_button.patch | 134 ++++++++++++++++++++++++++++++
 debian/patches/series                     |   1 +
 3 files changed, 136 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9fc0bee..3ec2595 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ sieve-extension (0.2.3h+dfsg-2) UNRELEASED; urgency=medium
   * Fix URL in Vcs-Git field.
   * Rebuild to also depend on thunderbird (Closes: #852637).
   * Replace codemirror copy with symlink to libjs-codemirror (Closes: #738748).
+  * Add patch to remove donation button from UI (Closes: #782706).
 
  -- Michael Fladischer <fladi at debian.org>  Tue, 14 Feb 2017 14:34:06 +0100
 
diff --git a/debian/patches/remove_donate_button.patch b/debian/patches/remove_donate_button.patch
new file mode 100644
index 0000000..35f8eca
--- /dev/null
+++ b/debian/patches/remove_donate_button.patch
@@ -0,0 +1,134 @@
+Description: Remove the donation button from UI
+ Tere re three buttons prominently displayed to donate to this extnesons
+ developemnt through Paypal. As there is already a request for donations on the
+ AMO page I do believe that it is not necessary to bug users on several
+ ocassions while using the extension.
+Author: Michael Fladischer <fladi at debian.org>
+Last-Update: 2017-02-14
+Forwarded: not-needed
+
+Index: sieve-extension/chrome/chromeFiles/content/editor/Sieve.css
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/editor/Sieve.css	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/editor/Sieve.css	2017-02-14 15:36:16.228955311 +0100
+@@ -263,14 +263,6 @@
+ 	list-style-image: url(chrome://sieve/content/images/toolbar.tools.png);
+ }
+ 
+-#btnDonate
+-{
+-	cursor:pointer;
+-	background: url(chrome://sieve/content/images/btn_donate_LG.gif) no-repeat center center;
+-	width: 96px;
+-    height: 26px;
+-}
+-
+ #btnPrint
+ {
+ 	list-style-image: url(chrome://sieve/content/images/toolbar.print.png);
+Index: sieve-extension/chrome/chromeFiles/content/editor/SieveFilterEditor.js
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/editor/SieveFilterEditor.js	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/editor/SieveFilterEditor.js	2017-02-14 15:36:31.373413362 +0100
+@@ -618,18 +618,6 @@
+     }, false);*/  
+ }
+ 
+-
+-function onDonate()
+-{
+-  var url = Cc["@mozilla.org/network/io-service;1"]
+-              .getService(Ci.nsIIOService)
+-              .newURI("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EAS576XCWHKTC", null, null)
+-              
+-  Cc["@mozilla.org/uriloader/external-protocol-service;1"]
+-    .getService(Ci.nsIExternalProtocolService)
+-    .loadUrl(url);
+-}
+-
+ function onViewSource(visible,aNoUpdate)
+ {
+   if (typeof(visible) == "undefined")
+@@ -1091,4 +1079,4 @@
+   textEditor.selectAll();
+ }
+ 
+-var gSFE = new SieveFilterEditor();
+\ No newline at end of file
++var gSFE = new SieveFilterEditor();
+Index: sieve-extension/chrome/chromeFiles/content/editor/SieveFilterEditor.xul
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/editor/SieveFilterEditor.xul	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/editor/SieveFilterEditor.xul	2017-02-14 15:36:48.225923107 +0100
+@@ -124,8 +124,6 @@
+         <menuitem label="&edit.toolbar.export;" oncommand="onExport();" />
+       </menupopup>
+     </toolbarbutton>
+-   <toolbarsplitter flex="1"/>
+-   <box id="btnDonate"  onclick="onDonate();"/>    
+   </toolbar>
+ </toolbox>
+ 
+Index: sieve-extension/chrome/chromeFiles/content/editor/SieveFilterExplorer.js
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/editor/SieveFilterExplorer.js	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/editor/SieveFilterExplorer.js	2017-02-14 15:37:34.387319545 +0100
+@@ -591,14 +591,3 @@
+ {
+   gSFE.setActiveScript((active?null:script))
+ }
+-
+-function onDonate()
+-{
+-  var url = Cc["@mozilla.org/network/io-service;1"]
+-              .getService(Ci.nsIIOService)
+-              .newURI("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EAS576XCWHKTC", null, null)
+-              
+-  Cc["@mozilla.org/uriloader/external-protocol-service;1"]
+-    .getService(Ci.nsIExternalProtocolService)
+-    .loadUrl(url);
+-}
+\ No newline at end of file
+Index: sieve-extension/chrome/chromeFiles/content/editor/SieveFilterExplorer.xul
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/editor/SieveFilterExplorer.xul	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/editor/SieveFilterExplorer.xul	2017-02-14 15:37:45.671660948 +0100
+@@ -41,7 +41,6 @@
+       <menulist id="menuImapAccounts" oncommand="onSelectAccount();">
+ 	  </menulist> 
+       <spacer flex="1"/> 
+-      <box id="btnDonate"  onclick="onDonate();"/>   
+   </hbox>
+ 
+   <grid flex="1" id="gridList" >
+Index: sieve-extension/chrome/chromeFiles/content/options/SieveAccountOptions.js
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/options/SieveAccountOptions.js	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/options/SieveAccountOptions.js	2017-02-14 15:37:58.436047149 +0100
+@@ -690,14 +690,3 @@
+   
+   gAccount.getProxy(2).setPort(sender.value)
+ }
+-
+-function onDonate()
+-{
+-  var url = Cc["@mozilla.org/network/io-service;1"]
+-              .getService(Ci.nsIIOService)
+-              .newURI("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EAS576XCWHKTC", null, null)
+-              
+-  Cc["@mozilla.org/uriloader/external-protocol-service;1"]
+-    .getService(Ci.nsIExternalProtocolService)
+-    .loadUrl(url); 
+-}
+Index: sieve-extension/chrome/chromeFiles/content/options/SieveAccountOptions.xul
+===================================================================
+--- sieve-extension.orig/chrome/chromeFiles/content/options/SieveAccountOptions.xul	2017-02-14 15:34:00.484850919 +0100
++++ sieve-extension/chrome/chromeFiles/content/options/SieveAccountOptions.xul	2017-02-14 15:38:07.984336055 +0100
+@@ -316,7 +316,6 @@
+        <label value="&options.credits;"/>
+         <vbox  flex="1" align="center">
+         <image src="chrome://sieve/content/images/contributors.png"/>
+-        <image src="chrome://sieve/content/images/btn_donate_LG.gif" onclick="onDonate();"/>
+         </vbox>
+     </vbox>   
+   </tabpanels>
diff --git a/debian/patches/series b/debian/patches/series
index 70227ed..f2d444a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+remove_donate_button.patch
 unversion-jquery.patch
 codemirror.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sieve-extension.git



More information about the Pkg-mozext-commits mailing list