summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* userLocationMarker: Rotate around center of iconwip/mlundblad/fix-compass-rotationMarcus Lundblad2022-12-041-0/+8
| | | | | | When there's a location heading (showing the compass location icon), apply appropriate translation transforms when rotating to get rotation around the icon's center point.
* Add Belarusian translationVasil Pupkin2022-12-012-0/+1794
|
* flatpak: Remove DBus talk for G-O-AMarcus Lundblad2022-11-301-1/+0
| | | | | This is not needed, as we don't use gnome-online-accounts anymore.
* css: Remove style used by the old check-in dialogMarcus Lundblad2022-11-301-4/+0
| | | | | This dialog was removed when we removed check-in support, so this style class isn't used anymore.
* application: Pass layers as a GListStore from argumentswip/mlundblad/fix-open-layers-commandlineMarcus Lundblad2022-11-281-1/+7
| | | | | When passing shape layer files on the command line pass them in a GListStore to mapView.openShapeLayers().
* mapBubble: Set the no-padding CSS style on popover contentswip/mlundblad/decrease-placeview-paddingMarcus Lundblad2022-11-281-2/+2
| | | | | This makes the thumbnail align "flush on" with the edge of the popovers.
* placeView: Decrease marginsMarcus Lundblad2022-11-272-8/+8
|
* mainWindow: Use notify::width on GdkSurface track adaptive changeswip/mlundblad/determine-adaptive-on-surfaceMarcus Lundblad2022-11-231-2/+7
| | | | | Use the width of the backing GdkSurface to determine when the application is in adaptive mode.
* mapView: Set long press gesture as touch-onlywip/mlundblad/touch-only-long-pressMarcus Lundblad2022-11-221-1/+1
| | | | | | | Fixes long press gesture on actual touch screens. Also avoids activating the context menu on long press of primary button, as we already show it on secondary button click.
* placeMarker: Rename the mark-location iconwip/mlundblad/rename-mark-locationMarcus Lundblad2022-11-192-1/+1
| | | | | | | | | | This icon is present in a symbolic recolorable variant in some system theme packages. This can result in a hard-to-read light grey icon when dark theme is used, which gives bad contrast against the (mostly light) raster tiles. So rename the bundled icon with a maps- prefix to prevent this.
* placeView: Remove extra parentesisMarcus Lundblad2022-11-191-1/+1
| | | | | | A superfluous parentesis had sneaked in when adding Wikidata support, preventing startup.
* placeView: Don't exand title labels verticallywip/mlundblad/fix-vexpand-place-titlesMarcus Lundblad2022-11-161-6/+4
|
* osmEditDialog: Add composite widget for editing Wikipediawip/mlundblad/wikidataMarcus Lundblad2022-11-154-26/+176
| | | | | | | Adds a composite widget for editing Wikipedia article and Wikidata references. Change the Wikipedia field to use the composite widget to allow editing Wikipedia article and Wikidata tags combined.
* osmUtils: Add function to get a Wikidata tag from a URLMarcus Lundblad2022-11-151-0/+17
| | | | | | | Adds a function to get the Wikidata tag from a URL of the forms: http(s)://www.wikidata.org/wiki/Qnnnn or http(s)://www.wikidata.org/wiki/Special:EntityPage/Qnnnn.
* wikipedia: Add function to fetch Wikidata tag for an articleMarcus Lundblad2022-11-151-0/+27
| | | | | | | Add a function to fetch a Wikidata tag given a Wikipedia article reference. This is to be used for automatically fetching Wikidata tags when an article has been entered in the POI editor.
* placeView: Use Wikidata to fetch metadataMarcus Lundblad2022-11-151-2/+16
| | | | | Fetch thumbnails and article extracts using the Wikidata tag when available.
* wikipedia: Add function to validate a Wikidata referenceMarcus Lundblad2022-11-152-0/+23
|
* wikipedia: Add function to fetch information from WikidataMarcus Lundblad2022-11-151-1/+166
| | | | | Add a function to fetch thumbnails and article extracts from Wikipedia using Wikidata tags.
* place: Add property for wikidataMarcus Lundblad2022-11-071-0/+12
|
* Update Hungarian translationBalázs Úr2022-11-051-111/+109
|
* maps-osm: Fix g_str_equal warnings from GLib >= 2.74Pablo Correa Gómez2022-10-281-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | GLib 2.74 introduced an optimization for string comparison[1], but that generates warnings similar to the following: In file included from /usr/include/glib-2.0/glib.h:52, from ../lib/maps-osm.h:23, from ../lib/maps-osm.c:20: ../lib/maps-osm.c: In function 'parse_tag': ../lib/maps-osm.c:75:32: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] 75 | if (g_str_equal (cur_attr->name, "k")) /usr/include/glib-2.0/glib/ghash.h:165:39: note: in definition of macro 'g_str_equal' 165 | #define g_str_equal(v1, v2) (strcmp ((v1), (v2)) == 0) | ^~ In file included from /usr/include/fortify/string.h:22, from /usr/include/glib-2.0/glib/galloca.h:35, from /usr/include/glib-2.0/glib.h:32: /usr/include/string.h:39:13: note: expected 'const char *' but argument is of type 'const xmlChar *' {aka 'const unsigned char *'} 39 | int strcmp (const char *, const char *); | ^~~~~~~~~~~~ Silence the warnings by casting the pointers to the correct type [1] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2940
* tests/timeTest: Fix tests for time formats with different kind of spacesPablo Correa Gómez2022-10-281-5/+10
| | | | | | | | Time.format does not warranty the character used for spaces, neither that it will not introduce preceding byte order marks. Solve it by comparing inclusion of the data and that it finishes with AM or PM. Closes #506
* maps-osm: Make sure all variables are initializedPablo Correa Gómez2022-10-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | Silence the following warnings ../lib/maps-osm.c: In function 'maps_osm_parse': ../lib/maps-osm.c:471:10: warning: 'object' may be used uninitialized [-Wmaybe-uninitialized] 471 | return object; | ^~~~~~ ../lib/maps-osm.c:439:18: note: 'object' was declared here 439 | MapsOSMObject *object; | ^~~~~~ In function 'fill_members', inlined from 'parse_relation' at ../lib/maps-osm.c:421:3, inlined from 'maps_osm_parse' at ../lib/maps-osm.c:465:32: ../lib/maps-osm.c:375:5: warning: 'ref' may be used uninitialized [-Wmaybe-uninitialized] 375 | maps_osm_relation_add_member (relation, role, type, ref); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/maps-osm.c: In function 'maps_osm_parse': ../lib/maps-osm.c:358:13: note: 'ref' was declared here 358 | guint64 ref; | ^~~
* Update Hebrew translationYosef Or Boczko2022-10-231-27/+25
| | | | (cherry picked from commit 8ff4de7bf47a43f96a2d95acd3169e6efd2f950d)
* Update Greek translationEfstathios Iosifidis2022-10-221-542/+543
| | | | (cherry picked from commit aa59a836b98b1d3606d5461130e22c241f021378)
* Update Italian translationGianvito Cavasoli2022-10-211-510/+356
| | | | (cherry picked from commit 9f65076b3c343fa8eea5fe8b472d9a07b254afca)
* Update Icelandic translationSveinn í Felli2022-10-171-509/+504
| | | | (cherry picked from commit 6385b636b8eca234f135327f338735cd39e12058)
* Update Russian translationAleksandr Melman2022-10-171-100/+104
|
* meson: Stop using deprecated meson featuresShivam Madlani2022-10-153-5/+5
| | | | | | | | | Meson>=0.56.0 has deprecated .source_root(), .build_root() and ExternalProgram.path. Replace with .project_source_root(), .project_build_root() and ExternalProgram.full_path Fixes #495
* Update Slovak translationDušan Kazik2022-10-131-512/+498
| | | | (cherry picked from commit f27bbf00ec2b7b0711c498257ca046d24b2b38ff)
* Use object destructuring in constructorsJames Westman2022-10-0551-377/+115
|
* Update Dutch translationNathan Follens2022-10-051-516/+504
|
* Update Friulian translationFabio Tomat2022-10-031-348/+351
| | | | (cherry picked from commit 105ef85e2bc86db0c8c72dcef6ea1e2cd7ceca70)
* gschema: Set an empty default window sizewip/mlundblad/initial-adaptiveMarcus Lundblad2022-10-021-1/+1
| | | | | | This avoids a call to set_default_size being made on initial launch, instead relying on the default size determined by the window mangager.
* mainWindow: Always update adaptive status on constructionMarcus Lundblad2022-10-021-16/+24
| | | | | Don't rely on notify::default-width being triggered on initial size request of the window.
* mainWindow: Don't set a requested size initiallyMarcus Lundblad2022-10-021-2/+0
|
* sidebar: Fix drag-and-dropping route entrieswip/mlundblad/fix-drag-n-drop-routesMarcus Lundblad2022-09-291-41/+18
| | | | This was not working since the GTK4 port.
* mainWindow: Pass a GListStore to openShapeLayerswip/mlundblad/fix-shapelayer-drag-and-dropMarcus Lundblad2022-09-271-1/+5
| | | | | | | | The openShapeLayers method expects a GListModel as returned by the file chooser when selecting files. While the drag-and-drop action gets the value a GFile. So wrap the object in a GListStore before passing in on from the DND handler.
* transitLegRow: Don't collapse instructions when clickingwip/mlundblad/fix-selecting-transit-stopMarcus Lundblad2022-09-261-2/+3
| | | | | | | | | Limit the press gesture for expanding/collapsing the instructs to the grid containing the basic unexpanded information. Otherwise selecting a stop, or walking instruction is not possible, as the press gesture gets in the way for the list box selected signal.
* turnPointMarker: Fix going to the turnpointwip/mlundblad/fix-selecting-turnpointMarcus Lundblad2022-09-241-13/+1
| | | | | This method was still using the old libchamplain APIs, adapt it to use the libshumate API.
* mapView: Fix removing previous turnpoint markerMarcus Lundblad2022-09-241-2/+2
| | | | | Use the proper remove_marker() method to remove the previous marker when showing a new turnpoint.
* readme: Updated for more contextTaisei Washington2022-09-241-2/+3
|
* mapView: Bring back commented-out code to set route layer visibleMarcus Lundblad2022-09-221-3/+2
| | | | | | This code, setting the visibility of the route and instruction layers on show/hide of a route had been left commented-out from the GTK4 port.
* sendToDialog: Use GLib.uri_escape_string()wip/mlundblad/fix-sendtoMarcus Lundblad2022-09-221-3/+2
| | | | | | Change from libsoup's URI escape functionallity to using the one from GLib, as that API is removed in libsoup3.
* application: Fix setting startup flag with --localwip/mlundblad/fix-local-tilesMarcus Lundblad2022-09-221-1/+1
| | | | | Use the correct static reference to Application when setting the normal startup flag when using local tiles.
* mapView: Fix initializing local tile data sourceMarcus Lundblad2022-09-221-5/+4
| | | | | Remove reference to non-existing variable "renderer". Use the correct zoom level properties from the file data source.
* file-data-source: Read content bytes into the correct objectMarcus Lundblad2022-09-221-3/+2
| | | | | | Store the file byte contents into the task data structure. The bytes were actually stored in a local bytes object, resulting in null being passed to the renderer.
* Update Nepali translationPawan Chitrakar2022-09-221-614/+520
| | | | (cherry picked from commit 576e8c333a7c6181d395d3ba861a36a65692de29)
* locationServiceDialog: Adjust the desktop ID for the location panelwip/mlundblad/fix-location-service-dialog-gtk4Marcus Lundblad2022-09-211-1/+1
| | | | The location settings panel now has the ID "gnome-location-panel.desktop".
* locationServiceDialog: Port template to GTK4Marcus Lundblad2022-09-211-34/+19
|