Followup to bug 568691 landing, QT-specific JS component on a CLOSED TREE.

This commit is contained in:
Benjamin Smedberg 2010-07-01 15:44:46 -04:00
parent c4dd7402dc
commit 8391bd98eb
3 changed files with 4 additions and 5 deletions

View File

@ -57,6 +57,7 @@ FORCE_USE_PIC = 1
DIRS = public
EXTRA_COMPONENTS = gtkqticonsconverter.manifest
EXTRA_PP_COMPONENTS = gtkqticonsconverter.js
include $(topsrcdir)/config/rules.mk

View File

@ -40,9 +40,7 @@ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
function GtkQtIconsConverter() { };
GtkQtIconsConverter.prototype = {
classDescription: "Gtk Qt stock icons converter",
classID: Components.ID("{c0783c34-a831-40c6-8c03-98c9f74cca45}"),
contractID: "@mozilla.org/gtkqticonsconverter;1",
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIGtkQtIconsConverter]),
convert: function(icon) { return this._gtk_qt_icons_table[icon]; },
_gtk_qt_icons_table: {
@ -167,7 +165,5 @@ GtkQtIconsConverter.prototype = {
},
}
var components = [GtkQtIconsConverter];
function NSGetModule(compMgr, fileSpec) {
return XPCOMUtils.generateModule(components);
}
const NSGetFactory = XPCOMUtils.generateNSGetFactory(components);

View File

@ -0,0 +1,2 @@
component {c0783c34-a831-40c6-8c03-98c9f74cca45} gtkqticonsconverter.js
contract @mozilla.org/gtkqticonsconverter;1 {c0783c34-a831-40c6-8c03-98c9f74cca45}