diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-01-25 23:47:21 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-05-17 22:54:45 +0200 |
commit | 5ab31a26a3313780994cf94c5a2aba9cf4d9115e (patch) | |
tree | 865d80941bbee01ca17c9e3c600574ad009fd041 | |
parent | d65b00a0c6e545d7608bb05681ac2490afc41c5b (diff) | |
download | gnome-maps-5ab31a26a3313780994cf94c5a2aba9cf4d9115e.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({ |