Fix for notifications in the merge folder
- From: Sergio Villar Senin <svillar igalia com>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Fix for notifications in the merge folder
- Date: Wed, 23 Apr 2008 19:51:29 +0200
Hi,
this patch properly makes the TnyMergeFolder keep the original value of
check_duplicates that was set to the TnyFolderChange that the merge
folder receives. Otherwise it will allways return FALSE as it's the
default preset for every new TnyFolderChange.
Br
Index: libtinymail/tny-merge-folder.c
===================================================================
--- libtinymail/tny-merge-folder.c (revision 3616)
+++ libtinymail/tny-merge-folder.c (working copy)
@@ -1524,6 +1524,7 @@
TnyIterator *iter;
gint total = 0, unread = 0;
TnyList *copy;
+ gboolean check_duplicates;
g_static_rec_mutex_lock (priv->lock);
copy = tny_list_copy (priv->mothers);
@@ -1542,6 +1543,8 @@
g_object_unref (iter);
g_object_unref (copy);
+ check_duplicates = tny_folder_change_get_check_duplicates (change);
+ tny_folder_change_set_check_duplicates (new_change, check_duplicates);
tny_folder_change_set_new_all_count (new_change, total);
tny_folder_change_set_new_unread_count (new_change, unread);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]