Commit ba06ecb8 authored by Bastien Nocera's avatar Bastien Nocera

search-provider: Allow searching for named timezones

We don't want to restrict the search to just cities, as we want named
timezones to also appear in the list.

See https://bugzilla.gnome.org/show_bug.cgi?id=692243

https://bugzilla.gnome.org/show_bug.cgi?id=791308
parent d97a9654
......@@ -73,7 +73,9 @@ public class SearchProvider : Object {
GWeather.Location? []locations = location.get_children ();
if (locations != null) {
for (int i = 0; i < locations.length; i++) {
if (locations[i].get_level () == GWeather.LocationLevel.CITY) {
var level = locations[i].get_level ();
if (level == GWeather.LocationLevel.CITY ||
level == GWeather.LocationLevel.NAMED_TIMEZONE) {
if (location_matches(locations[i], normalized_terms)) {
matches.add (locations[i]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment