[balsa] libbalsa-gpgme: Deprecation cleanup



commit 48926d25ead13ae0202bb4b96bef2e46662f061c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jun 22 09:06:51 2021 -0400

    libbalsa-gpgme: Deprecation cleanup
    
    modified:   libbalsa/libbalsa-gpgme.c

 libbalsa/libbalsa-gpgme.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/libbalsa/libbalsa-gpgme.c b/libbalsa/libbalsa-gpgme.c
index d12c8fd5e..c4ebae683 100644
--- a/libbalsa/libbalsa-gpgme.c
+++ b/libbalsa/libbalsa-gpgme.c
@@ -1200,7 +1200,11 @@ gpg_check_capas(const gchar *gpg_path, const gchar *version)
        /* check for the "--export-filter keep-uid=..." option */
        if (g_spawn_sync(NULL, gpg_args, NULL, G_SPAWN_STDOUT_TO_DEV_NULL + G_SPAWN_STDERR_TO_DEV_NULL, NULL, 
NULL, NULL, NULL,
                                         &exit_status, NULL)) {
+#if       GLIB_CHECK_VERSION(2, 70, 0)
+               gpg_capas.export_filter_uid = g_spawn_check_wait_status(exit_status, NULL);
+#else  /* GLIB_CHECK_VERSION(2, 70, 0) */
                gpg_capas.export_filter_uid = g_spawn_check_exit_status(exit_status, NULL);
+#endif /* GLIB_CHECK_VERSION(2, 70, 0) */
        }
        g_debug("%s supports '--export-filter keep-uid=...': %d", gpg_path, gpg_capas.export_filter_uid);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]