Split Browserとの連携機能を一時封印(どうしてもタブの縦置きができないため)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1243 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-10-20 10:44:42 +00:00
parent 9f21565b97
commit f36b37b538
3 changed files with 16 additions and 7 deletions

View File

@ -23,3 +23,7 @@ tabbrowser[treestyletab-vertical="true"] .tabs-alltabs-stack,
tabbrowser[treestyletab-vertical="true"] .tabs-closebutton-box {
display: none !important;
}
tabbrowser[treestyletab-vertical="true"] > tabbox {
-moz-box-orient: horizontal !important;
}

View File

@ -115,7 +115,7 @@ var TreeStyleTabService = {
get browser()
{
return 'SplitBrowser' ? SplitBrowser.activeBrowser : gBrowser ;
return 'SplitBrowser' && this.getPref('extensions.treestyletab.inSubbrowsers.enabled') ? SplitBrowser.activeBrowser : gBrowser ;
},
evaluateXPath : function(aExpression, aContext, aType)
@ -227,9 +227,11 @@ var TreeStyleTabService = {
window.removeEventListener('load', this, false);
var appcontent = document.getElementById('appcontent');
appcontent.addEventListener('SubBrowserAdded', this, false);
appcontent.addEventListener('SubBrowserRemoveRequest', this, false);
if (this.getPref('extensions.treestyletab.inSubbrowsers.enabled')) {
var appcontent = document.getElementById('appcontent');
appcontent.addEventListener('SubBrowserAdded', this, false);
appcontent.addEventListener('SubBrowserRemoveRequest', this, false);
}
this.addPrefListener(this);
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.levelMargin');
@ -665,9 +667,11 @@ catch(e) {
window.removeEventListener('unload', this, false);
var appcontent = document.getElementById('appcontent');
appcontent.removeEventListener('SubBrowserAdded', this, false);
appcontent.removeEventListener('SubBrowserRemoveRequest', this, false);
if (this.getPref('extensions.treestyletab.inSubbrowsers.enabled')) {
var appcontent = document.getElementById('appcontent');
appcontent.removeEventListener('SubBrowserAdded', this, false);
appcontent.removeEventListener('SubBrowserRemoveRequest', this, false);
}
this.removePrefListener(this);

View File

@ -13,6 +13,7 @@ pref("browser.link.open_newwindow.restriction", 0);
pref("extensions.multipletab.show.multipletab-selection-item-removeTabSubTree", true);
pref("extensions.multipletab.show.context-item-removeTabSubTree", true);
pref("extensions.treestyletab.inSubbrowsers.enabled", false);
pref("extensions.treestyletab@piro.sakura.ne.jp.name", "chrome://treestyletab/locale/treestyletab.properties");