mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 13:02:57 +00:00
+ patch from Dietrich to get Tab Candy running in Minefield (disables listing of candies)
This commit is contained in:
parent
9498388fdd
commit
0f37ecd63a
@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user