don't show toggler for mousemove if it is not handled by the user preference

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-10 14:01:53 +09:00
parent 977a015199
commit 0e6817b375

View File

@ -575,6 +575,7 @@ TreeStyleTabBrowser.prototype = {
this.onPrefChange('extensions.treestyletab.showBorderForFirstTab'); this.onPrefChange('extensions.treestyletab.showBorderForFirstTab');
this.onPrefChange('extensions.treestyletab.tabbar.invertTabContents'); this.onPrefChange('extensions.treestyletab.tabbar.invertTabContents');
this.onPrefChange('extensions.treestyletab.tabbar.invertClosebox'); this.onPrefChange('extensions.treestyletab.tabbar.invertClosebox');
this.onPrefChange('extensions.treestyletab.tabbar.autoShow.mousemove');
this.onPrefChange('extensions.treestyletab.animation.enabled'); this.onPrefChange('extensions.treestyletab.animation.enabled');
var tabContextMenu = b.tabContextMenu || var tabContextMenu = b.tabContextMenu ||
@ -1775,6 +1776,17 @@ TreeStyleTabBrowser.prototype = {
this.checkTabsIndentOverflow(); this.checkTabsIndentOverflow();
return; return;
case 'extensions.treestyletab.tabbar.autoShow.mousemove':
let (toggler = document.getAnonymousElementByAttribute(b, 'class', this.kTABBAR_TOGGLER)) {
if (toggler) {
if (value)
toggler.removeAttribute('hidden');
else
toggler.setAttribute('hidden', true);
}
}
return;
case 'extensions.treestyletab.maxTreeLevel.phisical': case 'extensions.treestyletab.maxTreeLevel.phisical':
if (this.maxTreeLevelPhisical = value) if (this.maxTreeLevelPhisical = value)
this.promoteTooDeepLevelTabs(); this.promoteTooDeepLevelTabs();