Browse files

Restructuring

git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@263 119bf307-c92d-0410-89bd-8f53e6181181
  • Loading branch information...
1 parent a7f2d15 commit a253051e8bedde1727e3615c15965afe72e0ae35 @einaregilsson committed Oct 9, 2009
View
7 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);
}
View
2 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);" />
View
2 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>
View
0 chrome/content/images/redirector.png → chrome/skin/redirector.png
File renamed without changes
View
0 chrome/content/images/statusactive.PNG → chrome/skin/statusactive.PNG
File renamed without changes
View
0 chrome/content/images/statusinactive.PNG → chrome/skin/statusinactive.PNG
File renamed without changes
View
4 install.rdf
@@ -9,8 +9,8 @@
<em:creator>Einar Egilsson</em:creator>
<em:description>Automatically redirects to user-defined urls on certain pages</em:description>
<em:homepageURL>http://tech.einaregilsson.com/projects/redirector/</em:homepageURL>
- <em:optionsURL>chrome://redirector/content/ui/redirectList.xul</em:optionsURL>
- <em:iconURL>chrome://redirector/content/images/redirector.png</em:iconURL>
+ <em:optionsURL>chrome://redirector/content/ui/settings.xul</em:optionsURL>
+ <em:iconURL>chrome://redirector/skin/redirector.png</em:iconURL>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- firefox -->

0 comments on commit a253051

Please sign in to comment.