Port all classes with inheritance to class framework
All classes that have at least one other derived class (and thus benefit from the framework) have been now ported. These includes NMDevice, SearchProvider, AltTab.SwitcherList, and some other stuff around. https://bugzilla.gnome.org/show_bug.cgi?id=664436
This commit is contained in:
@ -164,14 +164,12 @@ CommandCompleter.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
function RunDialog() {
|
||||
this._init();
|
||||
}
|
||||
const RunDialog = new Lang.Class({
|
||||
Name: 'RunDialog',
|
||||
Extends: ModalDialog.ModalDialog,
|
||||
|
||||
RunDialog.prototype = {
|
||||
__proto__: ModalDialog.ModalDialog.prototype,
|
||||
_init : function() {
|
||||
ModalDialog.ModalDialog.prototype._init.call(this, { styleClass: 'run-dialog' });
|
||||
this.parent({ styleClass: 'run-dialog' });
|
||||
|
||||
this._lockdownSettings = new Gio.Settings({ schema: LOCKDOWN_SCHEMA });
|
||||
this._terminalSettings = new Gio.Settings({ schema: TERMINAL_SCHEMA });
|
||||
@ -384,8 +382,7 @@ __proto__: ModalDialog.ModalDialog.prototype,
|
||||
if (this._lockdownSettings.get_boolean(DISABLE_COMMAND_LINE_KEY))
|
||||
return;
|
||||
|
||||
ModalDialog.ModalDialog.prototype.open.call(this);
|
||||
this.parent();
|
||||
},
|
||||
|
||||
};
|
||||
});
|
||||
Signals.addSignalMethods(RunDialog.prototype);
|
||||
|
Reference in New Issue
Block a user