diff options
author | Dan Winship <danw@src.gnome.org> | 2000-11-29 02:04:16 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-11-29 02:04:16 +0800 |
commit | dfc6c01cf945c1d3b12a16f151a693d778892b7f (patch) | |
tree | 114eab5dcede2bb80b910e0d548500366b80df27 /mail | |
parent | 3e0f8b57e459e7dbad54d6a3a6b256c347c033d9 (diff) | |
download | gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.gz gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.bz2 gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.lz gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.xz gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.zst gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.zip |
Fix the initial unread counts after the last patch.
* mail-local.c (cleanup_register_folder): Fix the initial unread
counts after the last patch.
svn path=/trunk/; revision=6697
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-local.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index d7b1bc3179..c63eb13543 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-11-28 Dan Winship <danw@helixcode.com> + + * mail-local.c (cleanup_register_folder): Fix the initial unread + counts after the last patch. + 2000-11-27 Dan Winship <danw@helixcode.com> * mail-local.c (local_folder_changed): This needs to run from the diff --git a/mail/mail-local.c b/mail/mail-local.c index 666cfefbbd..cc34a61a7d 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -707,6 +707,7 @@ cleanup_register_folder (gpointer in_data, gpointer op_data, CamelException *ex) { MailLocalFolder *local_folder = in_data; + int unread; if (!local_folder->folder) { g_free (local_folder); @@ -720,8 +721,10 @@ cleanup_register_folder (gpointer in_data, gpointer op_data, camel_object_hook_event (CAMEL_OBJECT (local_folder->folder), "folder_changed", local_folder_changed_proxy, local_folder); + unread = local_folder->last_unread; + local_folder->last_unread = 0; local_folder_changed (CAMEL_OBJECT (local_folder->folder), - NULL, local_folder); + GINT_TO_POINTER (unread), local_folder); } static const mail_operation_spec op_register_folder = |