~ubuntu-branches/ubuntu/trusty/gnome-shell/trusty-proposed

« back to all changes in this revision

Viewing changes to js/ui/runDialog.js

Tags: upstream-3.3.90
ImportĀ upstreamĀ versionĀ 3.3.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
const DIALOG_GROW_TIME = 0.1;
32
32
 
33
 
function CommandCompleter() {
34
 
    this._init();
35
 
}
 
33
const CommandCompleter = new Lang.Class({
 
34
    Name: 'CommandCompleter',
36
35
 
37
 
CommandCompleter.prototype = {
38
36
    _init : function() {
39
37
        this._changedCount = 0;
40
38
        this._paths = GLib.getenv('PATH').split(':');
162
160
            return common.substr(text.length);
163
161
        return common;
164
162
    }
165
 
};
166
 
 
167
 
function RunDialog() {
168
 
    this._init();
169
 
}
170
 
 
171
 
RunDialog.prototype = {
172
 
__proto__: ModalDialog.ModalDialog.prototype,
 
163
});
 
164
 
 
165
const RunDialog = new Lang.Class({
 
166
    Name: 'RunDialog',
 
167
    Extends: ModalDialog.ModalDialog,
 
168
 
173
169
    _init : function() {
174
 
        ModalDialog.ModalDialog.prototype._init.call(this, { styleClass: 'run-dialog' });
 
170
        this.parent({ styleClass: 'run-dialog' });
175
171
 
176
172
        this._lockdownSettings = new Gio.Settings({ schema: LOCKDOWN_SCHEMA });
177
173
        this._terminalSettings = new Gio.Settings({ schema: TERMINAL_SCHEMA });
384
380
        if (this._lockdownSettings.get_boolean(DISABLE_COMMAND_LINE_KEY))
385
381
            return;
386
382
 
387
 
        ModalDialog.ModalDialog.prototype.open.call(this);
 
383
        this.parent();
388
384
    },
389
 
 
390
 
};
 
385
});
391
386
Signals.addSignalMethods(RunDialog.prototype);