[Pkg-mozext-commits] [itsalltext] 81/459: added more mac text to the preferences dialog.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 01171c92056dea3b816b23494d1830efe50d0c17
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Mon Jan 22 09:32:38 2007 -0500
added more mac text to the preferences dialog.
---
chrome/content/preferences.js | 22 +++++++++++++++++++++-
chrome/content/preferences.xul | 11 +++++------
2 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/chrome/content/preferences.js b/chrome/content/preferences.js
index 8272627..b2bd6f9 100644
--- a/chrome/content/preferences.js
+++ b/chrome/content/preferences.js
@@ -1,4 +1,5 @@
// @todo [low] Use the EDITOR environment variable for default editor.
+// @todo [med] Redo the preferences dialog to look better.
/**
* Open a filepicker to select the value of the editor.
*/
@@ -48,6 +49,25 @@ function pref_onload() {
var editor = document.getElementById('editor');
editor.style.color = 'black';
editor.style.backgroundColor = '#fb4';
- setHelp("I was unable to run your editor, '"+editor.value+"'. You the browse button to choose another editor and try again.");
+ var box = document.getElementById('help');
+ // Clean it out
+ while (box.firstChild) {
+ box.removeChild(box.firstChild);
+ }
+ var desc, textnode;
+ message = [];
+ desc = document.createElement('description');
+ textnode = document.createTextNode(["I was unable to run your editor, '",
+ editor.value,
+ "'. Use the browse button to choose another editor and try again. "].join(''));
+ desc.appendChild(textnode);
+ desc.style.maxWidth = '18em';
+ box.appendChild(desc);
+
+ desc = document.createElement('description');
+ textnode = document.createTextNode("If you use Mac OS X, then you'll need to use the binary installed by your editor in /usr/bin OR you can try to find the binary in the NAME.app/Contents/MacOS/ directory.");
+ desc.appendChild(textnode);
+ desc.style.maxWidth = '18em';
+ box.appendChild(desc);
}
}
diff --git a/chrome/content/preferences.xul b/chrome/content/preferences.xul
index 2492426..5eccc95 100644
--- a/chrome/content/preferences.xul
+++ b/chrome/content/preferences.xul
@@ -8,7 +8,7 @@
<script type="application/x-javascript" src="preferences.js"/>
-<prefpane id="itsalltext-pane" label="It's All Text Preferences">
+<prefpane id="itsalltext-pane" label="It's All Text Preferences" flex="1">
<preferences>
<preference id="pref_charset"
name="extensions.itsalltext.charset" type="string"/>
@@ -20,8 +20,8 @@
name="extensions.itsalltext.debug" type="bool"/>
</preferences>
- <hbox>
- <vbox>
+ <hbox flex="1">
+ <vbox flex="1">
<hbox align="right">
<label control="editor" value="Editor: "/>
<textbox preference="pref_editor" id="editor" size="20" readonly="false"
@@ -44,10 +44,9 @@
value="Enable Debugging: "/>
<checkbox preference="pref_debug" id="debug" tabindex="4"/>
</hbox>
+ <spacer flex="2"/>
</vbox>
- <vbox>
- <description id="help" style="max-width: 15em;">
- </description>
+ <vbox id="help" flex="1">
</vbox>
</hbox>
</prefpane>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list