diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-10-03 16:40:20 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-10-03 16:40:20 +0800 |
commit | 10f140bfc24187f5c8d49a3a522e45cfc3b92453 (patch) | |
tree | 3506a9d7c683ca8d415d0fe872f018dec2a4a62d /mail/mail-send-recv.c | |
parent | 6885f966fa5581eda3feeca2b8e0fe001e88410d (diff) | |
download | gsoc2013-evolution-10f140bfc24187f5c8d49a3a522e45cfc3b92453.tar.gz gsoc2013-evolution-10f140bfc24187f5c8d49a3a522e45cfc3b92453.tar.zst gsoc2013-evolution-10f140bfc24187f5c8d49a3a522e45cfc3b92453.zip |
2007-10-03 mcrha Fix for bug #473903
svn path=/trunk/; revision=34346
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index ff6d3d6403..83f146d5ff 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -543,7 +543,7 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati /* Hook: If some one wants to hook on to the sendreceive dialog, this is the way to go. */ target = em_event_target_new_send_receive (em_event_peek(), table, data, row, EM_EVENT_SEND_RECEIVE); - e_event_emit (em_event_peek(), "mail.sendreceive", target); + e_event_emit ((EEvent *)em_event_peek (), "mail.sendreceive", (EEventTarget *) target); if (outbox && destination) { info = g_hash_table_lookup (data->active, SEND_URI_KEY); @@ -736,7 +736,7 @@ receive_get_folder(CamelFilterDriver *d, const char *uri, void *data, CamelExcep struct _send_info *info = data; CamelFolder *folder; struct _folder_info *oldinfo; - gpointer oldkey; + gpointer oldkey, oldinfoptr; g_mutex_lock(info->data->lock); oldinfo = g_hash_table_lookup(info->data->folders, uri); @@ -753,7 +753,8 @@ receive_get_folder(CamelFilterDriver *d, const char *uri, void *data, CamelExcep /* and we assume the newer one is the same, but unref the old one anyway */ g_mutex_lock(info->data->lock); - if (g_hash_table_lookup_extended(info->data->folders, uri, &oldkey, (void **)&oldinfo)) { + if (g_hash_table_lookup_extended (info->data->folders, uri, &oldkey, &oldinfoptr)) { + oldinfo = (struct _folder_info *) oldinfoptr; camel_object_unref(oldinfo->folder); oldinfo->folder = folder; } else { |