[gnome-maps] searchPopup: Do not popup on activation
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] searchPopup: Do not popup on activation
- Date: Fri, 19 Dec 2014 11:31:33 +0000 (UTC)
commit 46fe44f2807abfef1b73aedfaba0e766761c549f
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Fri Dec 19 01:53:18 2014 -0500
searchPopup: Do not popup on activation
src/searchPopup.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index 4564b82..09a9547 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -59,6 +59,9 @@ const SearchPopup = new Lang.Class({
this.parent(props);
this._entry = this.relative_to;
+ this._entry.connect('notify::place', (function() {
+ this._mode = Mode.ACTIVATED;
+ }).bind(this));
this._list.connect('row-activated', (function(list, row) {
if (row)
@@ -217,7 +220,6 @@ const SearchPopup = new Lang.Class({
keyval === Gdk.KEY_KP_ENTER ||
keyval === Gdk.KEY_ISO_Enter) {
row.activate();
- this._mode = Mode.ACTIVATED;
return true;
} else if (keyval === Gdk.KEY_KP_Up || keyval === Gdk.KEY_Up) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]