+ 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 9498388fdd
commit 0f37ecd63a

View File

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