gnome-maps:wip/mlundblad/fix-vexpand-place-titles

Last commit made on 2022-11-16
Get this branch:
git clone -b wip/mlundblad/fix-vexpand-place-titles https://git.launchpad.net/gnome-maps

Branch merges

Branch information

Name:
wip/mlundblad/fix-vexpand-place-titles
Repository:
lp:gnome-maps

Recent commits

abfb947... by Marcus Lundblad <email address hidden>

placeView: Don't exand title labels vertically

8980f15... by Marcus Lundblad <email address hidden>

osmEditDialog: Add composite widget for editing Wikipedia

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.

748e2a6... by Marcus Lundblad <email address hidden>

osmUtils: Add function to get a Wikidata tag from a URL

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.

dcf63e7... by Marcus Lundblad <email address hidden>

wikipedia: Add function to fetch Wikidata tag for an article

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.

bb2887e... by Marcus Lundblad <email address hidden>

placeView: Use Wikidata to fetch metadata

Fetch thumbnails and article extracts using the
Wikidata tag when available.

e7bd609... by Marcus Lundblad <email address hidden>

wikipedia: Add function to validate a Wikidata reference

9cff4ce... by Marcus Lundblad <email address hidden>

wikipedia: Add function to fetch information from Wikidata

Add a function to fetch thumbnails and article extracts
from Wikipedia using Wikidata tags.

e270915... by Marcus Lundblad <email address hidden>

place: Add property for wikidata

d1e4e1e... by Balázs Úr

Update Hungarian translation

39b6b88... by =?utf-8?q?Pablo_Correa_G=C3=B3mez?= <email address hidden>

maps-osm: Fix g_str_equal warnings from GLib >= 2.74

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