aboutsummaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-09 15:14:22 +0000
committerEinar Egilsson2009-10-09 15:14:22 +0000
commita253051e8bedde1727e3615c15965afe72e0ae35 (patch)
tree182135113e38b9442d7ab4e7382b0a4beadb0c56 /chrome
parenta7f2d159bb3aa3c515b6f858d3e592618f62cbdf (diff)
Restructuring
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@263 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome')
-rw-r--r--chrome/content/code/browserOverlay.xul.js7
-rw-r--r--chrome/content/ui/browserOverlay.xul2
-rw-r--r--chrome/content/ui/settings.xul2
-rw-r--r--chrome/skin/redirector.png (renamed from chrome/content/images/redirector.png)bin1462 -> 1462 bytes
-rw-r--r--chrome/skin/statusactive.PNG (renamed from chrome/content/images/statusactive.PNG)bin360 -> 360 bytes
-rw-r--r--chrome/skin/statusinactive.PNG (renamed from chrome/content/images/statusinactive.PNG)bin396 -> 396 bytes
6 files changed, 5 insertions, 6 deletions
diff --git a/chrome/content/code/browserOverlay.xul.js b/chrome/content/code/browserOverlay.xul.js
index b5ec077..28047b1 100644
--- a/chrome/content/code/browserOverlay.xul.js
+++ b/chrome/content/code/browserOverlay.xul.js
@@ -16,7 +16,6 @@ var RedirectorOverlay = {
this.strings = document.getElementById("redirector-strings");
this.changedPrefs(Redirector.prefs);
Redirector.prefs.addListener(this);
-
} catch(e) {
if (this.strings) {
alert(this.strings.getString("initError") + "\n\n" + e);
@@ -35,10 +34,10 @@ var RedirectorOverlay = {
var statusImg = document.getElementById('redirector-statusbar-img');
if (prefs.enabled) {
- statusImg.src = 'chrome://redirector/content/images/statusactive.PNG'
+ statusImg.src = 'chrome://redirector/skin/statusactive.png'
statusImg.setAttribute('tooltiptext', this.strings.getString('enabledTooltip'));
} else {
- statusImg.src = 'chrome://redirector/content/images/statusinactive.PNG'
+ statusImg.src = 'chrome://redirector/skin/statusinactive.png'
statusImg.setAttribute('tooltiptext', this.strings.getString('disabledTooltip'));
}
@@ -82,7 +81,7 @@ var RedirectorOverlay = {
if (win) {
win.focus();
} else {
- window.openDialog("chrome://redirector/content/ui/redirectList.xul",
+ window.openDialog("chrome://redirector/content/ui/settings.xul",
windowName,
"chrome,dialog,resizable=yes,centerscreen", this);
}
diff --git a/chrome/content/ui/browserOverlay.xul b/chrome/content/ui/browserOverlay.xul
index 77bab92..7b40c65 100644
--- a/chrome/content/ui/browserOverlay.xul
+++ b/chrome/content/ui/browserOverlay.xul
@@ -23,7 +23,7 @@
</popup>
<statusbar id="status-bar">
<statusbarpanel id="redirector-status">
- <image id="redirector-statusbar-img" src="chrome://redirector/content/images/statusactive.PNG"
+ <image id="redirector-statusbar-img" src="chrome://redirector/skin/statusactive.PNG"
tooltiptext="Redirector is enabled;"
style="width:16px; height:16px;"
onclick="RedirectorOverlay.statusBarClick(event);" />
diff --git a/chrome/content/ui/settings.xul b/chrome/content/ui/settings.xul
index 58c726a..fca43a4 100644
--- a/chrome/content/ui/settings.xul
+++ b/chrome/content/ui/settings.xul
@@ -17,7 +17,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="../code/redirect.js"/>
- <script type="application/x-javascript" src="../code/redirectList.xul.js"/>
+ <script type="application/x-javascript" src="../code/settings.xul.js"/>
<stringbundleset id="stringbundleset">
<stringbundle id="redirector-strings" src="chrome://redirector/locale/redirector.properties"/>
</stringbundleset>
diff --git a/chrome/content/images/redirector.png b/chrome/skin/redirector.png
index f8de12c..f8de12c 100644
--- a/chrome/content/images/redirector.png
+++ b/chrome/skin/redirector.png
Binary files differ
diff --git a/chrome/content/images/statusactive.PNG b/chrome/skin/statusactive.PNG
index 06ce766..06ce766 100644
--- a/chrome/content/images/statusactive.PNG
+++ b/chrome/skin/statusactive.PNG
Binary files differ
diff --git a/chrome/content/images/statusinactive.PNG b/chrome/skin/statusinactive.PNG
index 8b83562..8b83562 100644
--- a/chrome/content/images/statusinactive.PNG
+++ b/chrome/skin/statusinactive.PNG
Binary files differ