[gnome-maps/wip/jonasdn/storedRoute: 13/13] searchPopup: Handle activation by stored route
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/jonasdn/storedRoute: 13/13] searchPopup: Handle activation by stored route
- Date: Thu, 12 Feb 2015 20:06:02 +0000 (UTC)
commit 6316669cda3989685b907b0971a709c6aa876e27
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Thu Feb 12 20:46:08 2015 +0100
searchPopup: Handle activation by stored route
https://bugzilla.gnome.org/show_bug.cgi?id=744425
src/searchPopup.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index bd3d03b..fe39824 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -23,6 +23,7 @@ const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
+const Application = imports.application;
const PlaceListRow = imports.placeListRow;
const PlaceStore = imports.placeStore;
@@ -63,6 +64,10 @@ const SearchPopup = new Lang.Class({
this._mode = Mode.ACTIVATED;
}).bind(this));
+ Application.routeService.route.connect('updated', (function() {
+ this._mode = Mode.ACTIVATED;
+ }).bind(this));
+
this._list.connect('row-activated', (function(list, row) {
if (row)
this.emit('selected', row.place);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]