Split Browserとの連携機能を一時封印(どうしてもタブの縦置きができないため)
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1243 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
9f21565b97
commit
f36b37b538
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user