Re: Balsa 2.2.3 hangs
- From: Peter Bloomfield <PeterBloomfield bellsouth net>
- To: balsa-list gnome org
- Subject: Re: Balsa 2.2.3 hangs
- Date: Thu, 19 Aug 2004 12:53:18 +0000
On 08/19/2004 05:11:06 AM, Miquel van Smoorenburg wrote:
[ snip ]
Anyways it does ask for the password 5 times at startup -
perhaps for INBOX, Sent, Drafts, Trash and ... ?
Yes, I'm pretty sure that was it--the attached patch for 2.2.x
(already in cvs) fixed it for me. Give it a try!
Peter
Index: src/mailbox-node.c
===================================================================
RCS file: /cvs/gnome/balsa/src/mailbox-node.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- src/mailbox-node.c 12 Aug 2004 20:05:17 -0000 1.85
+++ src/mailbox-node.c 19 Aug 2004 12:47:55 -0000 1.86
@@ -525,6 +525,8 @@
balsa_mailbox_node_new_from_config(const gchar* prefix)
{
BalsaMailboxNode * folder = balsa_mailbox_node_new();
+ static guint get_password_signal = 0;
+
gnome_config_push_prefix(prefix);
folder->server = LIBBALSA_SERVER(libbalsa_imap_server_new_from_config());
@@ -536,8 +538,15 @@
G_CALLBACK(folder_conf_imap_node), NULL);
g_signal_connect(G_OBJECT(folder), "append-subtree",
G_CALLBACK(imap_dir_cb), NULL);
- g_signal_connect(G_OBJECT(folder->server), "get-password",
- G_CALLBACK(ask_password), NULL);
+
+ if (!get_password_signal)
+ get_password_signal =
+ g_signal_lookup("get-password", LIBBALSA_TYPE_SERVER);
+ if (!g_signal_has_handler_pending(G_OBJECT(folder->server),
+ get_password_signal, 0, TRUE))
+ g_signal_connect(G_OBJECT(folder->server), "get-password",
+ G_CALLBACK(ask_password), NULL);
+
balsa_mailbox_node_load_config(folder, prefix);
folder->dir = gnome_config_get_string("Directory");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]