[vte] bindings: gir: Change vte/gtk4 gir nsversion
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] bindings: gir: Change vte/gtk4 gir nsversion
- Date: Fri, 8 Apr 2022 19:41:02 +0000 (UTC)
commit 16e65aa7bea7b5781248be6fa904e3ee1077efdc
Author: Christian Persch <chpe src gnome org>
Date: Fri Apr 8 21:38:50 2022 +0200
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
bindings/gir/meson.build | 4 ++--
1 file 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',
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]