From f40adf6b33195e6614e20ac68f05dbf39bc69b12 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 12 Nov 2010 19:22:50 +0000 Subject: Add button to status bar on gecko extension --- Makefile | 4 ++-- gecko/chrome/content/icon.png | Bin 0 -> 388 bytes gecko/chrome/content/readable.xul | 3 +++ gecko/install.rdf | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 gecko/chrome/content/icon.png 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 Binary files /dev/null and b/gecko/chrome/content/icon.png 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 @@ + + + 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 @@ Readable - Makes webpages more readable. Press Ctrl-Alt-r to toggle readable. + Makes webpages more readable. Press Ctrl-Alt-r or click the 'r' icon in the status bar to toggle readable. Nick White http://njw.me.uk/software/readable/ -- cgit v1.2.3