summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* route, graphHopper: Use generic turn instruction codeswip/mlundblad/additional-turn-iconsMarcus Lundblad2021-10-162-25/+45
| | | | | | | | | Makes the generic query points use codes independent from the GraphHopper API codes. This avoids mixing GraphHopper-related codes with extra codes for instructions such as elevators used by OpenTripPlanner. Also properly handle U-turn instructions from GraphHopper so that they get appropriate icon.
* main: Explicitly require GWeather 3.0Marcus Lundblad2021-10-131-0/+1
| | | | | | As libgweather will do an API bump to 4.0 dropping GTK widgets and other API breaks, explicitly require 3.0 now.
* Use libhandy's dark style infrastructureChristopher Davis2021-10-034-26/+15
| | | | | | | Instead of having our own explicit setting for dark mode, we can use libhandy's infrastructure for dark styling, which is hooked into the new global dark style preference.
* osmUtils: Use place update methodwip/mlundblad/reduce-dup-place-initMarcus Lundblad2021-09-281-16/+1
| | | | | Use method to update place instance with OSM tags.
* overpass: Use place update methodMarcus Lundblad2021-09-281-32/+2
| | | | | Use method to update the place instance from OSM tags.
* place: Add method to update place from tagsMarcus Lundblad2021-09-281-25/+53
| | | | Add a method to update a place from OSM tags.
* placeIcons: Refine use of shopping cart iconwip/mlundblad/less-shoplike-shopsMarcus Lundblad2021-08-251-1/+5
| | | | | | | | Use the shopping cart icon for more supermarket- like place types, as covering all shop= catches some cases where it is not as fitting. Better fall back to the generic pin icon for other shop= tags.
* osmEditDialog: Add missing spaceAnders Jonsson2021-08-161-1/+1
|
* osmConnection: Use '1' for permission instead of 'yes'Marcus Lundblad2021-07-091-1/+1
| | | | | | | | | Use the correct value '1' instead of 'yes' when posting the authorization form. This fixes a regression making OSM OAUTH setup to break with recent updates on openstreetmap.org breaking the old incorrect behavior. Fixes #386
* main: Explicitly require WebKit 4.0Marcus Lundblad2021-06-221-1/+2
|
* main: Don't require GFBGraphMarcus Lundblad2021-06-131-1/+0
| | | | libgfbgraph is not used anymore.
* Remove Facebook checkin backendMarcus Lundblad2021-06-132-119/+0
|
* checkIn: Don't intialize Facebook backendMarcus Lundblad2021-06-131-4/+0
|
* checkInDialog: Remove Facebook supportMarcus Lundblad2021-06-131-14/+3
| | | | | | | | Since the API implemented in libgfbgraph is no longer supported by Facebook, and the Facebook login in gnome-online-accounts is no longer working we'll drop this support for the time being.
* osmAccountDialog, osmConnection: Show error message when store failedwip/mlundblad/handle-libsecret-failMarcus Lundblad2021-06-062-4/+13
| | | | Show error message when secret store fails.
* mainWindow: Only enable map type shortcuts when usefulwip/mlundblad/disable-maptype-shortcutsMarcus Lundblad2021-06-011-10/+17
| | | | | Only enable the shortcuts to switch b/w street and aerial map types when aerial tiles are available.
* mapView: Don't try to set aerial tiles if not availablewip/mlundblad/fix-saved-aerial-no-supportMarcus Lundblad2021-05-271-3/+5
| | | | | | | | Safe-guard agains setting the aerial tile source if it's not available in the service file. This avoid a crash if aerial was saved as last-used map type in gsettings and at next startup the service has dropped support.
* mapBubble: Increase maximum widthwip/mlundblad/increase-max-place-bubble-widthMarcus Lundblad2021-05-251-1/+1
| | | | | | Increase maximum width a bit to allow place for the directions button in some translations.
* mapSource, mapView: Fix handling different attribution logoswip/mlundblad/fix-multiple-attribution-logosMarcus Lundblad2021-05-212-24/+45
| | | | | | | We previously never had different attribution logos for the map sources. Fix this so that it actually works to update the logo when switching source now that we use different providers for street and aerial.
* contextMenu: Don't store route placeswip/mlundblad/fix-liststore-warningMarcus Lundblad2021-05-201-3/+3
| | | | | | | | | | Flag coordinate-based places used for the route from/to/via menus to not be stored in the place store. As these places contains no names, it makes no sense, and it actually isn't supported by the place store and gives a GtkListStore warning.
* placeView: Hide native name unless it should be shownwip/mlundblad/default-hide-native-nameMarcus Lundblad2021-05-181-0/+6
| | | | | | | In some cases, when running in a different locale compared to last run, the native name label could still be shown with the native name from before even when the primary name would become identical.
* place: Fix saving country code to JSONwip/mlundblad/fix-place-countrycode-jsonMarcus Lundblad2021-05-171-1/+1
| | | | | Correctly save the country code attribute when storing JSON to the place store.
* placeView: Show rounded population numberswip/mlundblad/round-populationsMarcus Lundblad2021-05-171-1/+1
| | | | | Use the utility function to show abbreviated population numbers for large round values.
* utils: Add function to format population numbersMarcus Lundblad2021-05-161-0/+13
| | | | | | Handles rounding even population numbers (>= 1 M and divisable by 100k) in compact abbreviated form (leaving out trailing zeros).
* placeView: Format 0 and negative altitudes nicerwip/mlundblad/negative-altitudesMarcus Lundblad2021-05-151-1/+21
| | | | | | | Instead of just showing 0 or a value with a - sign, show the altitudes as "At sea level" and "%s below sea level" which looks a bit less "techichal".
* meson: Call find_program() once for GJSwip/mlundblad/single-gjs-find-programMarcus Lundblad2021-05-081-1/+1
| | | | | Avoiding multiple calls to find_program() for the generated test scripts.
* osmEditDialog: Add field for takeawaywip/mlundblad/add-email-and-takeawayMarcus Lundblad2021-05-071-0/+8
| | | | Add combo box field for takeaway.
* osmUtils: Update takeawayMarcus Lundblad2021-05-071-0/+1
| | | | | Also include takeaway status when updating edited places.
* placeView: Show takeaway for eating & drinking placesMarcus Lundblad2021-05-071-0/+31
|
* place: Add boolean read-only property for eating & drinkingMarcus Lundblad2021-05-071-0/+10
|
* overpass: Set takeaway on place when availableMarcus Lundblad2021-05-011-0/+2
|
* place: Add property for take-awayMarcus Lundblad2021-05-011-0/+12
|
* osmEditDialog: Add e-mail addressMarcus Lundblad2021-04-291-0/+25
| | | | Add e-mail address as an editable field.
* osmUtils: Update e-mail address for placesMarcus Lundblad2021-04-291-0/+1
| | | | Also include email when updating edited places.
* placeView: Show e-mail addressMarcus Lundblad2021-04-291-0/+7
|
* overpass: Set e-mail address on place when availableMarcus Lundblad2021-04-291-0/+4
|
* place: Add property for e-mail addressMarcus Lundblad2021-04-291-0/+12
|
* utils: Add function to validate e-mail addressesMarcus Lundblad2021-04-291-0/+12
|
* Revert "mapMarker: Update bubble position on size change"wip/mlundblad/revert-bubble-repositionMarcus Lundblad2021-04-291-3/+0
| | | | This reverts commit 71801b1ec65dc237073eb5c08c4f53eba816a700.
* Revert "mapMarker: Improve marker reposion when not fitting below"Marcus Lundblad2021-04-291-14/+4
| | | | This reverts commit 6ca991733fac1103437385270f2eb4494a387dfb.
* osmNames: Add missing [] for Khmer definitionsMarcus Lundblad2021-04-271-2/+2
|
* transitRouter: Use country code from placewip/mlundblad/use-country-code-from-photonMarcus Lundblad2021-04-261-7/+8
| | | | | | | Use the country code from places in the query when avaible, before falling back to using libgweather to guess country/region based on coordinates.
* overpass: Use addr:country when setMarcus Lundblad2021-04-261-0/+2
| | | | | | Use addr:country when constructing input for the PhotonParser (using the countrycode parameter).
* photonParser: Use country code when availableMarcus Lundblad2021-04-261-1/+2
| | | | | Use the country code from the search result when available.
* osmEditDialog: Validate Wikipedia referenceswip/mlundblad/wikipedia-validateMarcus Lundblad2021-04-261-0/+2
| | | | Show error style on invalid Wikipedia references.
* osmEditDialog: Generalize validation of empty valuesMarcus Lundblad2021-04-261-9/+8
| | | | | | | Make the validation handling special-casing empty text values generic so we won't have to implement specific functions shortcircuiting empty values for all fields that would have validation.
* placeView: Validate Wikipedia references before useMarcus Lundblad2021-04-261-2/+2
| | | | | Validate reference before adding placeholder and requesting metadata.
* wikipedia: Add function to validate a referenceMarcus Lundblad2021-04-261-0/+21
|
* placeView: Set hexpand on details boxwip/mlundblad/place-details-hexpandMarcus Lundblad2021-04-241-1/+2
|
* sidebar: Grey-out transit switch when not availablewip/mlundblad/always-show-transit-buttonMarcus Lundblad2021-04-211-6/+2
| | | | | | | | | | | Due to a bug in GTK where setting visible false on a linked button not working properly, we used to call destroy() on this button when transit providers where not available. Since calling destroy() on widgets will not be supported in GTK 4 and we could instead dim the button in this case as this feature has now been exposed by default for a while. And originally it was hidden since the feature where itself hidden.