File seahorse-47.0.1-gpgme-2.patch of Package seahorse

From aa68522cc696fa491ccfdff735b77bcf113168d0 Mon Sep 17 00:00:00 2001
From: Xi Ruoyao <xry111@xry111.site>
Date: Wed, 4 Jun 2025 19:17:00 +0800
Subject: [PATCH] pgp: Allow build with gpgme >= 2.0.0

Since gpgme-2.0.0, GPGME_EVENT_NEXT_TRUSTITEM is removed.
---
 pgp/seahorse-gpgme.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pgp/seahorse-gpgme.c b/pgp/seahorse-gpgme.c
index 5203c83a..9b2b3c10 100644
--- a/pgp/seahorse-gpgme.c
+++ b/pgp/seahorse-gpgme.c
@@ -393,7 +393,9 @@ on_gpgme_event (void *user_data,
 		break;
 
 	case GPGME_EVENT_NEXT_KEY:
+#if GPGME_VERSION_NUMBER < 0x020000
 	case GPGME_EVENT_NEXT_TRUSTITEM:
+#endif
 	default:
 		/* Ignore unsupported event types */
 		break;
-- 
GitLab

openSUSE Build Service is sponsored by