+ patch from Dietrich to get Tab Candy running in Minefield (disables listing of candies)

This commit is contained in:
Ian Gilman 2010-05-13 10:37:50 -07:00
parent f0b26c0e62
commit 7bda5a2eb1

View File

@ -15,9 +15,6 @@ var homeWindow = Cc["@mozilla.org/embedcomp/window-watcher;1"]
var consoleService = Cc["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService);
var extensionManager = Cc["@mozilla.org/extensions/manager;1"]
.getService(Ci.nsIExtensionManager);
// ##########
// Class: Point
// A simple point.
@ -339,6 +336,8 @@ var Utils = {
// ___ Files
getInstallDirectory: function(id) {
var extensionManager = Cc["@mozilla.org/extensions/manager;1"]
.getService(Ci.nsIExtensionManager);
var file = extensionManager.getInstallLocation(id).getItemFile(id, "install.rdf");
return file.parent;
},
@ -359,6 +358,7 @@ var Utils = {
getVisualizationNames: function() {
var names = [];
/*
var dir = this.getInstallDirectory('tabcandy@aza.raskin');
dir.append('content');
dir.append('candies');
@ -371,6 +371,7 @@ var Utils = {
names.push(file.leafName);
}
*/
return names;
},