Permalink
1 comment
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixes #11728. Added warning dialog in case Transparent Torification i…
…s enabled.
- Loading branch information
Showing
with
60 additions
and 0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,18 @@ | ||
| if (!org) var org = {}; | ||
| if (!org.torbirdy) org.torbirdy = {}; | ||
|
|
||
| if (!org.torbirdy.transparenttorificationwarning) org.torbirdy.transparenttorificationwarning = new function() { | ||
| var pub = {}; | ||
|
|
||
| pub.onLoad = function() { | ||
|
|
||
| }; | ||
|
|
||
| pub.onPrefs = function() { | ||
| window.open("chrome://castironthunderbirdclub/content/preferences.xul", | ||
| "Preferences", | ||
| "chrome, dialog, centerscreen, resizable=no"); | ||
| }; | ||
|
|
||
| return pub; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,29 @@ | ||
| <?xml version="1.0"?> | ||
| <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> | ||
|
|
||
| <!DOCTYPE overlay SYSTEM "chrome://castironthunderbirdclub/locale/torbirdy.dtd"> | ||
|
|
||
| <dialog id="castironthunderbird-transparenttorification-warning" | ||
| xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | ||
| title="&torbirdy.transparenttorificationwarning.title;" | ||
| buttons="accept,cancel" | ||
| buttonlabelcancel="&torbirdy.transparenttorificationwarning.ignore.button;" | ||
| ondialogcancel="window.close();" | ||
| buttonlabelaccept="&torbirdy.transparenttorificationwarning.prefs.button;" | ||
| ondialogaccept="return org.torbirdy.transparenttorificationwarning.onPrefs();" | ||
| onload="return org.torbirdy.transparenttorificationwarning.onLoad();"> | ||
|
|
||
| <script type="application/x-javascript" | ||
| src="chrome://castironthunderbirdclub/content/transparenttorificationwarning.js"> | ||
| </script> | ||
|
|
||
| <stringbundleset id="stringbundleset"> | ||
| <stringbundle id="torbirdy-strings-transparenttorificationwarning" src="chrome://castironthunderbirdclub/locale/torbirdy.properties"/> | ||
| </stringbundleset> | ||
|
|
||
| <vbox flex="1" pack="start"> | ||
| <description id="torbirdy-transparenttorification-warning" style="white-space: pre-wrap; width: 400px"></description> | ||
| <label value="&torbirdy.transparenttorificationwarning.label;" style="color:red"/> | ||
| </vbox> | ||
|
|
||
| </dialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This comment has been minimized.
67f95beThanks for the patch. This is fine except for a few modifications. I will commit it shortly and update this ticket.