[gnome-maps/wip/routing2] Sidebar: go back to using geocodeService
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/routing2] Sidebar: go back to using geocodeService
- Date: Tue, 10 Jun 2014 04:30:58 +0000 (UTC)
commit baf180877058237b803d0625a77b493b3225f864
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Tue Jun 10 02:39:32 2014 +0200
Sidebar: go back to using geocodeService
src/sidebar.js | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/src/sidebar.js b/src/sidebar.js
index 7219012..ba27686 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -171,19 +171,16 @@ const PlaceEntry = new Lang.Class({
_onActivate: function(popover) {
if (this.text.length > 0) {
popover.showSpinner();
- //TODO: How to do the geocoding in a good way?
- Application
- .application
- ._mainWindow
- .mapView
- .geocodeSearch(this.text, (function(places) {
- if (places === null) {
- popover.hide();
- log(places);
- }
- popover.updateResult(places, this.text);
- popover.showResult();
- }).bind(this));
+ Application.geocodeService.search(this.text,
+ null,
+ (function(places) {
+ if (places === null) {
+ popover.hide();
+ log(places);
+ }
+ popover.updateResult(places, this.text);
+ popover.showResult();
+ }).bind(this));
}
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]