[gnome-shell] runDialog: Remove tab-completion preloading
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] runDialog: Remove tab-completion preloading
- Date: Thu, 7 Mar 2013 21:50:53 +0000 (UTC)
commit d5675765f30d2a471c6db3b7299d4b9df3588461
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Mar 6 21:27:16 2013 -0500
runDialog: Remove tab-completion preloading
This is iffy anyway, since we don't wait for the correct signal.
Just make the user press tab again, like they would do anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=695338
js/ui/runDialog.js | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js
index ac3f090..f35b557 100644
--- a/js/ui/runDialog.js
+++ b/js/ui/runDialog.js
@@ -259,18 +259,6 @@ const RunDialog = new Lang.Class({
return true;
}
- if (symbol == Clutter.slash) {
- // Need preload data before get completion. GFilenameCompleter load content of parent
directory.
- // Parent directory for /usr/include/ is /usr/. So need to add fake name('a').
- let text = o.get_text().concat('/a');
- let prefix;
- if (text.lastIndexOf(' ') == -1)
- prefix = text;
- else
- prefix = text.substr(text.lastIndexOf(' ') + 1);
- this._getCompletion(prefix);
- return false;
- }
if (symbol == Clutter.Tab) {
let text = o.get_text();
let prefix;
@@ -282,8 +270,6 @@ const RunDialog = new Lang.Class({
if (postfix != null && postfix.length > 0) {
o.insert_text(postfix, -1);
o.set_cursor_position(text.length + postfix.length);
- if (postfix[postfix.length - 1] == '/')
- this._getCompletion(text + postfix + 'a');
}
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]