summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-04-08 21:38:50 +0200
committerChristian Persch <chpe@src.gnome.org>2022-04-08 21:38:50 +0200
commit16e65aa7bea7b5781248be6fa904e3ee1077efdc (patch)
tree77e6cb714d65c4559815d78150e84070ee22cc30
parent6a80bec4bf7a1e52057c03d2c73cce1bf248c6d7 (diff)
downloadvte-16e65aa7bea7b5781248be6fa904e3ee1077efdc.tar.gz
bindings: gir: Change vte/gtk4 gir nsversion
The previous scheme of prepending a '4' proved to be problemativ, see issue 2550. Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2550
-rw-r--r--bindings/gir/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/gir/meson.build b/bindings/gir/meson.build
index c45c6f76..68a58e2e 100644
--- a/bindings/gir/meson.build
+++ b/bindings/gir/meson.build
@@ -51,7 +51,7 @@ if get_option('gtk4')
# Ideally, the gir would be named something like "VteGtk4" instead,
# but it seems that's not possible. So work around it using "Vte"
# as namespace with this nsversion hack:
- gir_nsversion_gtk4 = '4-' + vte_api_version
+ vte_gtk4_gir_nsversion = '@0@.@1@'.format(vte_api_major_version + 1, vte_api_minor_version)
libvte_gtk4_gir = gnome.generate_gir(
libvte_gtk4,
@@ -62,7 +62,7 @@ if get_option('gtk4')
includes: libvte_gtk4_gir_includes,
install: true,
namespace: 'Vte',
- nsversion: gir_nsversion_gtk4,
+ nsversion: vte_gtk4_gir_nsversion,
sources: libvte_gtk4_public_headers + libvte_common_doc_sources,
symbol_prefix: 'vte',
)