[Pkg-mozext-commits] [tabmixplus] 09/51: Remove maxRow getter

David Prévot taffit at moszumanska.debian.org
Mon Feb 2 18:36:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 5a8eec7e721d407d9623ccf5f2126ce0f6f89143
Author: onemen <tabmix.onemen at gmail.com>
Date:   Fri Jan 2 09:38:32 2015 +0200

    Remove maxRow getter
---
 chrome/content/tab/tab.js           |  2 +-
 chrome/content/tab/tabbrowser_4.xml | 10 +---------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index ef13325..4e65ac2 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -940,7 +940,7 @@ var gTMPprefObserver = {
         break;
       case "extensions.tabmix.tabBarMaxRow":
           var tabBar = gBrowser.tabContainer;
-          let row = tabBar.maxRow;
+          let row = Tabmix.prefs.getIntPref("tabBarMaxRow");
           if (row < 2) {
             Tabmix.prefs.setIntPref("tabBarMaxRow", 2);
             return;
diff --git a/chrome/content/tab/tabbrowser_4.xml b/chrome/content/tab/tabbrowser_4.xml
index a5bc512..b8a57ec 100644
--- a/chrome/content/tab/tabbrowser_4.xml
+++ b/chrome/content/tab/tabbrowser_4.xml
@@ -450,7 +450,7 @@
           let rows = aReset || this.childNodes.length == 1 ? 1 : (this.lastTabRowNumber || 1);
 
           let currentMultibar = this.getAttribute("multibar") || null;
-          let maxRow = this.maxRow;
+          let maxRow = Tabmix.prefs.getIntPref("tabBarMaxRow");
           // we need to check for the case that last row of tabs is empty and we still have hidden row on top
           // this can occur when we close last tab in the last row or when some tab changed width
           if (rows > 1 && rows - maxRow < 0 && this.overflow && this.canScrollTabsLeft) {
@@ -554,14 +554,6 @@
       <property name="canScrollTabsRight" readonly="true"
                 onget="return !this.mTabstrip._scrollButtonDown.disabled;"/>
 
-      <property name="maxRow" readonly="true">
-        <getter><![CDATA[
-          var row = Tabmix.prefs.getIntPref("tabBarMaxRow");
-          Tabmix.setItem(this.mTabstrip._scrollButtonDown, "notonbottom", (row > 2) || null);
-          return row;
-        ]]></getter>
-      </property>
-
       <!--
         check that we have enough room to show new tab button after the last tab in the current row
         we don't want the button to be on the next row when the tab is on the current row

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list