From 0e6817b3752fb21dd9ff3910431a0d078858e0bb Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Mon, 10 Jan 2011 14:01:53 +0900 Subject: [PATCH] don't show toggler for mousemove if it is not handled by the user preference --- content/treestyletab/treestyletabbrowser.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index f4e84267..8353f33a 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -575,6 +575,7 @@ TreeStyleTabBrowser.prototype = { this.onPrefChange('extensions.treestyletab.showBorderForFirstTab'); this.onPrefChange('extensions.treestyletab.tabbar.invertTabContents'); this.onPrefChange('extensions.treestyletab.tabbar.invertClosebox'); + this.onPrefChange('extensions.treestyletab.tabbar.autoShow.mousemove'); this.onPrefChange('extensions.treestyletab.animation.enabled'); var tabContextMenu = b.tabContextMenu || @@ -1775,6 +1776,17 @@ TreeStyleTabBrowser.prototype = { this.checkTabsIndentOverflow(); 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': if (this.maxTreeLevelPhisical = value) this.promoteTooDeepLevelTabs();