summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@dfupdate.se>2023-01-25 23:47:21 +0100
committerMarcus Lundblad <ml@dfupdate.se>2023-04-27 21:45:09 +0200
commitd432d140aa85e79df6171a9135c928afab863423 (patch)
tree312c2b1eac3aee33acedc88d553d710dab2815a3
parent4bdfd826e0f8ecde29376cf4eb5b3e4667c4531f (diff)
downloadgnome-maps-d432d140aa85e79df6171a9135c928afab863423.tar.gz
placeEntry: Add method to show POI browser in popover
-rw-r--r--src/placeEntry.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/placeEntry.js b/src/placeEntry.js
index c59206c1..239b0be6 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -389,6 +389,16 @@ export class PlaceEntry extends Gtk.SearchEntry {
this._popover.updateResult(completedPlaces, searchText);
this._popover.showResult();
}
+
+ browsePois() {
+ this._popover.showPoiMainCategories();
+ /* clear text entry incase it has a previous selected place
+ * highlighted to avoid confusion, as this text is not taken into
+ * account when searching for POIs
+ */
+ this.text = '';
+ this.grab_focus();
+ }
}
GObject.registerClass({