summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-12 19:22:50 +0000
committerNick White <git@njw.me.uk>2010-11-12 19:22:50 +0000
commitf40adf6b33195e6614e20ac68f05dbf39bc69b12 (patch)
treefaa8a9ef974b133650bf7e61ee4b33249bb7d0fc
parent5e2255f4f678ceb455c26174c765f92879238634 (diff)
Add button to status bar on gecko extension
-rw-r--r--Makefile4
-rw-r--r--gecko/chrome/content/icon.pngbin0 -> 388 bytes
-rw-r--r--gecko/chrome/content/readable.xul3
-rw-r--r--gecko/install.rdf2
4 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index aee2b52..9295873 100644
--- a/Makefile
+++ b/Makefile
@@ -23,11 +23,11 @@ dist:
@ln -sf $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig
@echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
-xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul
+xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul gecko/chrome/content/icon.png
@rm -rf $(NAME)-$(VERSION).xpi gecko-build
@mkdir -p gecko-build/chrome/content
@cp COPYING gecko/chrome.manifest gecko-build/
- @cp gecko/chrome/content/readable.xul gecko-build/chrome/content/
+ @cp gecko/chrome/content/readable.xul gecko/chrome/content/icon.png gecko-build/chrome/content/
@cp readable.js gecko-build/chrome/content/readable.js
@sed "s/VERSION/$(VERSION)/g" < gecko/install.rdf > gecko-build/install.rdf
@cd gecko-build; zip -r ../$(NAME)-$(VERSION).xpi . 1>/dev/null
diff --git a/gecko/chrome/content/icon.png b/gecko/chrome/content/icon.png
new file mode 100644
index 0000000..5470e39
--- /dev/null
+++ b/gecko/chrome/content/icon.png
Binary files differ
diff --git a/gecko/chrome/content/readable.xul b/gecko/chrome/content/readable.xul
index 5ea1597..75ab8fd 100644
--- a/gecko/chrome/content/readable.xul
+++ b/gecko/chrome/content/readable.xul
@@ -4,4 +4,7 @@
<keyset>
<key id="readable" modifiers="accel alt" key="r" oncommand="readable()" />
</keyset>
+ <statusbar id="status-bar">
+ <image id="readable-icon" src="chrome://readable/content/icon.png" onclick="readable()" />
+ </statusbar>
</overlay>
diff --git a/gecko/install.rdf b/gecko/install.rdf
index ec45142..b00b1a7 100644
--- a/gecko/install.rdf
+++ b/gecko/install.rdf
@@ -19,7 +19,7 @@
</em:targetApplication>
<em:name>Readable</em:name>
- <em:description>Makes webpages more readable. Press Ctrl-Alt-r to toggle readable.</em:description>
+ <em:description>Makes webpages more readable. Press Ctrl-Alt-r or click the 'r' icon in the status bar to toggle readable.</em:description>
<em:creator>Nick White</em:creator>
<em:homepageURL>http://njw.me.uk/software/readable/</em:homepageURL>
<doap:license rdf:resource="http://www.gnu.org/licenses/agpl.html"/>