[Pkg-privacy-commits] [xul-ext-monkeysphere] 224/296: generate icons from svg source, and fix svg source (closes #2012)

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:42 UTC 2015


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

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit 5b3b8b96e3f5445d624a5cf3a5b357bb53444095
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Sat May 1 18:02:46 2010 -0400

    generate icons from svg source, and fix svg source (closes #2012)
---
 Changelog                               |   3 ++-
 Makefile                                |  10 ++++++++--
 chrome/content/bad.png                  | Bin 936 -> 0 bytes
 chrome/content/bad.svg                  |   2 +-
 chrome/content/error.png                | Bin 414 -> 0 bytes
 chrome/content/{good.png => monkey.png} | Bin
 chrome/content/monkeysphere.js          |   4 ++--
 7 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Changelog b/Changelog
index 735db9f..23e7d7f 100644
--- a/Changelog
+++ b/Changelog
@@ -1,8 +1,9 @@
 xul-ext-monkeysphere (0.3~pre) unstable; urgency=low
 
   * Fix clearSite status menu function
+  * generate icon pngs from svg source
 
- -- Jameson Rollins <jrollins at finestructure.net>  Thu, 01 May 2010 15:04:57 -0400
+ -- Jameson Rollins <jrollins at finestructure.net>  Sat, 01 May 2010 18:03:22 -0400
 
 xul-ext-monkeysphere (0.2); urgency=low
 
diff --git a/Makefile b/Makefile
index 4b883b1..d52650d 100755
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,12 @@
 
 XPI_CONTENTS:=$(shell find chrome modules defaults -name "*.html" -o -name "*.css" -o -name "*.png" -o -name "*.gif" -o -name "*.js" -o -name "*.jsm" -o -name "*.dtd" -o -name "*.xul" -o -name "messages") chrome.manifest install.rdf COPYING
 
-monkeysphere.xpi: $(XPI_CONTENTS)
+ICONS = $(addprefix chrome/content/, bad.png error.png)
+icons: $(ICONS)
+%.png: %.svg
+	inkscape --export-png $@ --export-area-page --export-background-opacity=0 $<
+
+monkeysphere.xpi: $(XPI_CONTENTS) $(ICONS)
 	zip $@ $(XPI_CONTENTS)
 
 debian-package:
@@ -17,6 +22,7 @@ publish: monkeysphere.xpi
 	scp $< archivemaster at george.riseup.net:/srv/archive.monkeysphere.info/xul-ext/
 
 clean:
+	rm -f $(ICONS)
 	rm -f monkeysphere.xpi
 
-.PHONY: clean debian-package publish
+.PHONY: clean icons debian-package publish
diff --git a/chrome/content/bad.png b/chrome/content/bad.png
deleted file mode 100644
index a80efa5..0000000
Binary files a/chrome/content/bad.png and /dev/null differ
diff --git a/chrome/content/bad.svg b/chrome/content/bad.svg
index 69faee4..f678690 100644
--- a/chrome/content/bad.svg
+++ b/chrome/content/bad.svg
@@ -83,7 +83,7 @@
      id="image4287"
      height="16"
      width="16"
-     xlink:href="file:///home/jrollins/cmrg/monkeysphere/msva/git/xul-ext/chrome/content/good.png" />
+     xlink:href="monkey.png" />
   <path
      id="path3692"
      style="fill:none;stroke:#ff1900;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
diff --git a/chrome/content/error.png b/chrome/content/error.png
deleted file mode 100644
index 2113659..0000000
Binary files a/chrome/content/error.png and /dev/null differ
diff --git a/chrome/content/good.png b/chrome/content/monkey.png
similarity index 100%
rename from chrome/content/good.png
rename to chrome/content/monkey.png
diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 36b54d8..3667899 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -162,12 +162,12 @@ var monkeysphere = (function() {
         document.getElementById("monkeysphere-status-clearSite").hidden = true;
         break;
       case 'VALID':
-        icon.setAttribute("src", "chrome://monkeysphere/content/good.png");
+        icon.setAttribute("src", "chrome://monkeysphere/content/monkey.png");
         panel.hidden = false;
         document.getElementById("monkeysphere-status-clearSite").hidden = false;
         break;
       case 'CLEARED':
-        icon.setAttribute("src", "chrome://monkeysphere/content/good.png");
+        icon.setAttribute("src", "chrome://monkeysphere/content/monkey.png");
         panel.hidden = false;
         document.getElementById("monkeysphere-status-clearSite").hidden = true;
         break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list