|
|
@ -31,12 +31,14 @@ const FirewallSupport = new Lang.Class({
|
|
|
|
this.handler = null;
|
|
|
|
this.handler = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
enable: function() {
|
|
|
|
enable: function() {
|
|
|
|
this._destroyHandler();
|
|
|
|
this._destroyHandler();
|
|
|
|
this.handler = new FirewallPromptHandler();
|
|
|
|
this.handler = new FirewallPromptHandler();
|
|
|
|
//this.cmon.install();
|
|
|
|
//this.cmon.install();
|
|
|
|
this.menu.install();
|
|
|
|
this.menu.install();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
disable: function() {
|
|
|
|
disable: function() {
|
|
|
|
this.menu.destroy();
|
|
|
|
this.menu.destroy();
|
|
|
|
//this.cmon.remove();
|
|
|
|
//this.cmon.remove();
|
|
|
@ -137,14 +139,14 @@ const FirewallPromptHandler = new Lang.Class({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
_destroyKeybindings: function() {
|
|
|
|
_destroyKeybindings: function() {
|
|
|
|
for (var i = 0 , ii = keyBindings.length; i < ii; i++) {
|
|
|
|
for (var i = 0 , ii = this._keyBindings.length; i < ii; i++) {
|
|
|
|
Main.wm.removeKeybinding(this._keyBindings[i]);
|
|
|
|
Main.wm.removeKeybinding(this._keyBindings[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
_closeDialogs: function() {
|
|
|
|
_closeDialogs: function() {
|
|
|
|
log("SGFW: Closing all dialogs");
|
|
|
|
log("SGFW: Closing all dialogs");
|
|
|
|
if (this._dialogs.length > 0) {
|
|
|
|
while (this._dialogs.length > 0) {
|
|
|
|
dialog = this._dialogs.shift();
|
|
|
|
dialog = this._dialogs.shift();
|
|
|
|
dialog.close();
|
|
|
|
dialog.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|