Tue, 24 Dec 2024 00:36:32 -0600
Silence Adwaita deprecation warning
Set version macros similar to GLib to silence the warnings.
Testing Done:
Compiled and no longer saw the warning about `AdwPreferencesWindow`.
Reviewed at https://reviews.imfreedom.org/r/3702/
| meson.build | file | annotate | diff | comparison | revisions |
--- a/meson.build Mon Dec 23 22:25:00 2024 -0600 +++ b/meson.build Tue Dec 24 00:36:32 2024 -0600 @@ -202,6 +202,10 @@ if get_option('gtkui') gtk = dependency('gtk4', version : '>= 4.10.0') libadwaita = dependency('libadwaita-1', version : '>= 1.5') + add_project_arguments( + '-DADW_VERSION_MIN_REQUIRED=ADW_VERSION_1_5', + '-DADW_VERSION_MAX_ALLOWED=ADW_VERSION_1_5', + language: 'c') endif ENABLE_GTK = get_option('gtkui')