From 59342d4244537892fd6444abd24f4476c3cdeb67 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 8 Jun 2008 04:22:37 +0000 Subject: [PATCH] removed buffer window --- NEWS | 1 + content/buffer.js | 12 ------- content/events.js | 5 --- content/liberator.js | 1 - content/muttator.xul | 10 ------ content/muttatorcompose.xul | 10 ------ content/tabs.js | 64 ++++++++++++++----------------------- content/vimperator.xul | 10 ------ 8 files changed, 25 insertions(+), 88 deletions(-) diff --git a/NEWS b/NEWS index 36701936..32a709ad 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@
 2008-06-xx:
     * version 1.2
+    * renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit
     * don't pass any ctrl- or alt- prefixed keys to firefox in insert mode
     * keywords in :open  have higher priority than local files now
     * add :set online to control the "work offline" menu item
diff --git a/content/buffer.js b/content/buffer.js
index 348026a6..28b972aa 100644
--- a/content/buffer.js
+++ b/content/buffer.js
@@ -873,18 +873,6 @@ liberator.Buffer = function () //{{{
             setTimeout(function () { doc.body.removeChild(indicator); }, 500);
         },
 
-        // XXX: probably remove this method/functionality
-        // updates the buffer preview in place only if list is visible
-        updateBufferList: function ()
-        {
-            if (!liberator.bufferwindow.visible())
-                return;
-
-            var items = liberator.completion.buffer("")[1];
-            liberator.bufferwindow.show(items);
-            liberator.bufferwindow.selectItem(getBrowser().mTabContainer.selectedIndex);
-        },
-
         zoomIn: function (steps, fullZoom)
         {
             bumpZoomLevel(steps, fullZoom);
diff --git a/content/events.js b/content/events.js
index be5f1b83..54015bed 100644
--- a/content/events.js
+++ b/content/events.js
@@ -244,17 +244,14 @@ liberator.Events = function () //{{{
             tabcontainer.addEventListener("TabMove", function (event)
             {
                 liberator.statusline.updateTabCount();
-                liberator.buffer.updateBufferList();
             }, false);
             tabcontainer.addEventListener("TabOpen", function (event)
             {
                 liberator.statusline.updateTabCount();
-                liberator.buffer.updateBufferList();
             }, false);
             tabcontainer.addEventListener("TabClose", function (event)
             {
                 liberator.statusline.updateTabCount();
-                liberator.buffer.updateBufferList();
             }, false);
             tabcontainer.addEventListener("TabSelect", function (event)
             {
@@ -263,7 +260,6 @@ liberator.Events = function () //{{{
                 liberator.commandline.clear();
                 liberator.modes.show();
                 liberator.statusline.updateTabCount();
-                liberator.buffer.updateBufferList();
                 liberator.tabs.updateSelectionHistory();
 
                 setTimeout(function () { liberator.focusContent(true); }, 10); // just make sure, that no widget has focus
@@ -449,7 +445,6 @@ liberator.Events = function () //{{{
             if (url && liberator.history)
                 liberator.history.add(url, title);
 
-            liberator.buffer.updateBufferList();
             liberator.autocommands.trigger("PageLoad", url);
 
             // mark the buffer as loaded, we can't use liberator.buffer.loaded
diff --git a/content/liberator.js b/content/liberator.js
index ee297276..212e8a4f 100644
--- a/content/liberator.js
+++ b/content/liberator.js
@@ -810,7 +810,6 @@ const liberator = (function () //{{{
             log("commandline");    liberator.commandline   = liberator.CommandLine();
             log("search");         liberator.search        = liberator.Search();
             log("preview window"); liberator.previewwindow = liberator.InformationList("liberator-previewwindow", { incrementalFill: false, maxItems: 10 });
-            log("buffer window");  liberator.bufferwindow  = liberator.InformationList("liberator-bufferwindow", { incrementalFill: false, maxItems: 10 });
             log("statusline");     liberator.statusline    = liberator.StatusLine();
             log("buffer");         liberator.buffer        = liberator.Buffer();
             log("editor");         liberator.editor        = liberator.Editor();
diff --git a/content/muttator.xul b/content/muttator.xul
index 8d64daf3..b4813bf7 100644
--- a/content/muttator.xul
+++ b/content/muttator.xul
@@ -91,16 +91,6 @@ the terms of any one of the MPL, the GPL or the LGPL.