[gnome-maps] placeEntry: Allow going back to an already selected place
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] placeEntry: Allow going back to an already selected place
- Date: Sat, 3 Aug 2019 19:54:19 +0000 (UTC)
commit 99fdf594f4c91d17b0855353eff7aeca2be5eb2a
Author: Marcus Lundblad <ml update uu se>
Date: Sat Aug 3 20:25:47 2019 +0200
placeEntry: Allow going back to an already selected place
This enables selecting the place again from the search
results when panned away from it.
Fixes #67
src/placeEntry.js | 11 -----------
1 file changed, 11 deletions(-)
---
diff --git a/src/placeEntry.js b/src/placeEntry.js
index aba76d4..649a4ca 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -57,9 +57,6 @@ var PlaceEntry = GObject.registerClass({
if (!this._place && !p)
return;
- if (this._place && p && this._locEquals(this._place, p))
- return;
-
if (p) {
if (p.name) {
this._placeText = p.name;
@@ -150,14 +147,6 @@ var PlaceEntry = GObject.registerClass({
}
}
- _locEquals(placeA, placeB) {
- if (!placeA.location || !placeB.location)
- return false;
-
- return (placeA.location.latitude === placeB.location.latitude &&
- placeA.location.longitude === placeB.location.longitude);
- }
-
_createPopover(numVisible, maxChars) {
let popover = new PlacePopover.PlacePopover({ num_visible: numVisible,
relative_to: this,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]