[balsa/gtk4: 258/311] Minor cleanup
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 258/311] Minor cleanup
- Date: Fri, 17 Dec 2021 19:54:27 +0000 (UTC)
commit be8810e85ac1565a831124d2fb1e90af70c8e553
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Nov 9 16:24:33 2020 -0500
Minor cleanup
modified: libbalsa/libbalsa-gpgme-cb.c
libbalsa/libbalsa-gpgme-cb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libbalsa/libbalsa-gpgme-cb.c b/libbalsa/libbalsa-gpgme-cb.c
index 586080912..ee6893631 100644
--- a/libbalsa/libbalsa-gpgme-cb.c
+++ b/libbalsa/libbalsa-gpgme-cb.c
@@ -338,7 +338,7 @@ select_key_idle(gpointer user_data)
}
gpgme_key_t
-lb_gpgme_select_key(const gchar * user_name, lb_key_sel_md_t mode, GList * keys,
+lb_gpgme_select_key(const char * user_name, lb_key_sel_md_t mode, GList * keys,
gpgme_protocol_t protocol, GtkWindow * parent)
{
select_key_data_t data;
@@ -350,13 +350,12 @@ lb_gpgme_select_key(const gchar * user_name, lb_key_sel_md_t mode, GList * keys,
data.keys = keys;
data.parent = parent;
- g_idle_add(select_key_idle, &data);
-
g_mutex_init(&data.lock);
g_cond_init(&data.cond);
g_mutex_lock(&data.lock);
data.done = FALSE;
+ g_idle_add(select_key_idle, &data);
while (!data.done)
g_cond_wait(&data.cond, &data.lock);
g_mutex_unlock(&data.lock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]