mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
+ patch from Dietrich to get Tab Candy running in Minefield (disables listing of candies)
This commit is contained in:
parent
f0b26c0e62
commit
7bda5a2eb1
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user