[polari] entryArea: Minor cleanup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] entryArea: Minor cleanup
- Date: Thu, 3 Sep 2015 15:27:59 +0000 (UTC)
commit 98c4f8dae5880565a935178900f5edad90708342
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Sep 2 02:04:04 2015 +0200
entryArea: Minor cleanup
We got a function last cycle to grab an entry without selecting its
text, so use that instead of the current GtkEntry:editable hack.
src/entryArea.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/entryArea.js b/src/entryArea.js
index 2d8ab44..bb6b7ac 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -175,9 +175,7 @@ const EntryArea = new Lang.Class({
if (activationKeys.indexOf(keyval) != -1)
return Gdk.EVENT_PROPAGATE;
- this._entry.editable = false;
- this._entry.grab_focus();
- this._entry.editable = true;
+ this._entry.grab_focus_without_selecting();
this._entry.event(event);
return Gdk.EVENT_STOP;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]