diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-05-13 15:59:49 +1000 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2020-09-23 16:40:00 +0000 |
commit | 4f6bec60bfc781c59d5afb6f968fc94ad859e5b9 (patch) | |
tree | 3804a5c444ff014b8182aed901431bb9673f70d0 /meson.build | |
parent | d35c6e0e41ec8c0426d1317b9f28f485b7b4530d (diff) | |
download | gnome-desktop-4f6bec60bfc781c59d5afb6f968fc94ad859e5b9.tar.gz |
xkbinfo: use libxkbregistry to parse the rules files for us
Available in libxkbcommon 1.0.0 and later, libxkbregistry is a library wrapper
around the evdev.xml rules file that we used to parse directly here. It
provides a basic iteration API - load the evdev ruleset, then iterate through
the layouts and options and copy the values over into our data structures as
needed. This removes the need for XML parsing and error-checking, we can now
rely on libxkbregistry to do this for us.
The side-effect of this (and motivation for libxkbregistry) is that we
automatically load user-specific XKB RMLVO as well where they are present.
Together with mutter commit f71238732508d91bdfcb581c84697a516499a1eb this
allows a user to drop up their custom XKB layouts in
$XDG_CONFIG_DIR/xkb and have them both listed in the GUIs and working.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index f18f83fc..166b0259 100644 --- a/meson.build +++ b/meson.build @@ -47,6 +47,7 @@ gio_unix_dep = dependency('gio-unix-2.0', version: glib_req) schemas_dep = dependency('gsettings-desktop-schemas', version: schemas_req) fontconfig_dep = dependency('fontconfig') xkb_config_dep = dependency('xkeyboard-config') +xkbregistry_dep = dependency('xkbregistry') iso_codes_dep = dependency('iso-codes') libsystemd_dep = dependency('libsystemd', required: get_option('systemd')) |