Port PanelMenu to new class framework

Second patch in the class framework, now it's the turn of
PanelMenu (buttons, menus and status indicators).

https://bugzilla.gnome.org/show_bug.cgi?id=664436
This commit is contained in:
Giovanni Campagna
2011-11-20 15:38:48 +01:00
parent 2b57603271
commit 566bdb50c2
11 changed files with 73 additions and 111 deletions

View File

@ -1548,14 +1548,12 @@ NMDeviceWireless.prototype = {
},
};
function NMApplet() {
this._init.apply(this, arguments);
}
NMApplet.prototype = {
__proto__: PanelMenu.SystemStatusButton.prototype,
const NMApplet = new Lang.Class({
Name: 'NMApplet',
Extends: PanelMenu.SystemStatusButton,
_init: function() {
PanelMenu.SystemStatusButton.prototype._init.call(this, 'network-error');
this.parent('network-error', null);
this._client = NMClient.Client.new();
@ -2121,7 +2119,7 @@ NMApplet.prototype = {
this._mobileUpdateId = 0;
}
}
};
});
function NMMessageTraySource() {
this._init();