diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-01-25 23:47:21 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-04-27 21:45:09 +0200 |
commit | d432d140aa85e79df6171a9135c928afab863423 (patch) | |
tree | 312c2b1eac3aee33acedc88d553d710dab2815a3 | |
parent | 4bdfd826e0f8ecde29376cf4eb5b3e4667c4531f (diff) | |
download | gnome-maps-d432d140aa85e79df6171a9135c928afab863423.tar.gz |
placeEntry: Add method to show POI browser in popover
-rw-r--r-- | src/placeEntry.js | 10 |
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({ |