From 1832d3c6080f120a6859f615b6df22bd3d9789f6 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 20 Jun 2008 06:16:22 +0000 Subject: [PATCH] =?UTF-8?q?=E6=97=A7=E7=89=88=E3=81=AE=E6=8C=99=E5=8B=95?= =?UTF-8?q?=E3=81=AB=E6=88=BB=E3=81=9B=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2702 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 10 ++++++---- defaults/preferences/treestyletab.js | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 16bf3758..f6c3b2b2 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -93,7 +93,8 @@ TreeStyleTabService.overrideExtensionsOnInitBefore = function() { flst.tb = gBrowser; flst.tabBox = flst.tb.mTabBox; } - if ('ensureTabIsVisible' in gBrowser.mTabContainer) { + if ('isTabVisible' in gBrowser.mTabContainer && + 'ensureTabIsVisible' in gBrowser.mTabContainer) { function replaceHorizontalProps(aString) { return aString.replace( @@ -110,15 +111,16 @@ TreeStyleTabService.overrideExtensionsOnInitBefore = function() { ]]> ) } - eval('gBrowser.mTabContainer.isTabVisible = '+ - replaceHorizontalProps(gBrowser.mTabContainer.isTabVisible.toSource()) - ); eval('gBrowser.mTabContainer.ensureTabIsVisible = '+ replaceHorizontalProps(gBrowser.mTabContainer.ensureTabIsVisible.toSource().replace( 'tabhbox.boxObject.width < 250', '$& && !gBrowser.treeStyleTab.isVertical' )) ); + if (!this.getTreePref('TMP.doNotUpdate.isTabVisible')) + eval('gBrowser.mTabContainer.isTabVisible = '+ + replaceHorizontalProps(gBrowser.mTabContainer.isTabVisible.toSource()) + ); } }; diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index 693a7d0d..039f53e8 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -74,5 +74,8 @@ pref("browser.tabs.loadFolderAndReplace.override", false); pref("extensions.multipletab.show.multipletab-selection-item-removeTabSubTree", true); +pref("extensions.treestyletab.TMP.doNotUpdate.isTabVisible", false); + + pref("extensions.treestyletab@piro.sakura.ne.jp.name", "chrome://treestyletab/locale/treestyletab.properties"); pref("extensions.treestyletab@piro.sakura.ne.jp.description", "chrome://treestyletab/locale/treestyletab.properties");