[balsa/gtk4: 271/314] Minor cleanup
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 271/314] Minor cleanup
- Date: Sat, 19 Jun 2021 21:03:52 +0000 (UTC)
commit 74a4fb64ad4849326381c66ed0b748d6b80592cb
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]