https://bugzilla.mozilla.org/show_bug.cgi?id=568691 の変更によってプラットフォームごとの初期設定が読み込まれなくなっていたのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7299 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-10-25 03:06:02 +00:00
parent 0916f4d058
commit b09eeca43d
4 changed files with 16 additions and 5 deletions

View File

@ -147,4 +147,9 @@ pref("extensions.treestyletab.compatibility.TMP", true); // Tab Mix Plus
pref("extensions.treestyletab.compatibility.STM.warnForNewTabPosition", true); // Super Tab Mode
pref("extensions.treestyletab.platform.Darwin.tabbar.style", "metal");
pref("extensions.treestyletab.platform.Darwin.indent.property.top", "margin-bottom");
pref("extensions.treestyletab.platform.Linux.tabbar.style", "plain");
pref("extensions.treestyletab.prefsVersion", 0);

View File

@ -248,7 +248,9 @@ var TreeStyleTabUtils = {
{
if (this._initialized) return;
this.isMac = this.XULAppInfo.OS.toLowerCase().indexOf('darwin') > -1;
this.isMac = this.XULAppInfo.OS == 'Darwin';
this.applyPlatformDefaultPrefs();
this.addPrefListener(this);
@ -267,7 +269,7 @@ var TreeStyleTabUtils = {
this.onPrefChange('extensions.treestyletab.twisty.expandSensitiveArea');
try {
if (this.XULAppInfo.OS.toLowerCase().indexOf('winnt') > -1)
if (this.XULAppInfo.OS == 'WINNT')
this.updateAeroPeek();
}
catch(e) {
@ -275,6 +277,13 @@ var TreeStyleTabUtils = {
}
},
_initialized : false,
applyPlatformDefaultPrefs : function TSTUtils_applyPlatformDefaultPrefs()
{
var OS = this.XULAppInfo.OS;
this.getDescendant('extensions.treestyletab.platform.'+OS).forEach(function(aKey) {
this.setDefaultPref(aKey.replace('platform.'+OS+'.', ''), this.getDefaultPref(aKey));
}, this);
},
updateAeroPeek : function TSTUtils_updateAeroPeek()
{

View File

@ -1,2 +0,0 @@
pref("extensions.treestyletab.tabbar.style", "metal");
pref("extensions.treestyletab.indent.property.top", "margin-bottom");

View File

@ -1 +0,0 @@
pref("extensions.treestyletab.tabbar.style", "plain");