mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Followup to bug 568691 landing, QT-specific JS component on a CLOSED TREE.
This commit is contained in:
parent
c4dd7402dc
commit
8391bd98eb
@ -57,6 +57,7 @@ FORCE_USE_PIC = 1
|
||||
|
||||
DIRS = public
|
||||
|
||||
EXTRA_COMPONENTS = gtkqticonsconverter.manifest
|
||||
EXTRA_PP_COMPONENTS = gtkqticonsconverter.js
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -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);
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
component {c0783c34-a831-40c6-8c03-98c9f74cca45} gtkqticonsconverter.js
|
||||
contract @mozilla.org/gtkqticonsconverter;1 {c0783c34-a831-40c6-8c03-98c9f74cca45}
|
Loading…
Reference in New Issue
Block a user