From 250946204244dce6c91d99ce4f573ae3de2dcb7a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 14 Aug 2001 16:37:59 +0000 Subject: Use the passed-in unread_count. * evolution-storage.c (evolution_storage_new_folder): Use the passed-in unread_count. * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): Pass the passed-in unread_count to e_storage_new_folder. svn path=/trunk/; revision=12018 --- shell/ChangeLog | 8 ++++++++ shell/e-corba-storage.c | 1 + shell/evolution-storage.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index f59611fcd0..2fb964e268 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,11 @@ +2001-08-14 Dan Winship + + * evolution-storage.c (evolution_storage_new_folder): Use the + passed-in unread_count. + + * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): + Pass the passed-in unread_count to e_storage_new_folder. + 2001-08-13 Ettore Perazzoli * e-gray-bar.c (impl_style_set): Chain to the parent class. diff --git a/shell/e-corba-storage.c b/shell/e-corba-storage.c index 5745ee8fcf..394a06cf3a 100644 --- a/shell/e-corba-storage.c +++ b/shell/e-corba-storage.c @@ -110,6 +110,7 @@ impl_StorageListener_notifyFolderCreated (PortableServer_Servant servant, folder->description); e_folder_set_physical_uri (e_folder, folder->physical_uri); + e_folder_set_unread_count (e_folder, folder->unread_count); if (! e_storage_new_folder (storage, path, e_folder)) { g_print ("Cannot register folder -- %s %s\n", path, folder->display_name); diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c index fb0ca7604c..55ca4c3b7d 100644 --- a/shell/evolution-storage.c +++ b/shell/evolution-storage.c @@ -826,7 +826,7 @@ evolution_storage_new_folder (EvolutionStorage *evolution_storage, corba_folder->description = CORBA_string_dup (description); corba_folder->type = CORBA_string_dup (type); corba_folder->physical_uri = CORBA_string_dup (physical_uri); - corba_folder->unread_count = 0; + corba_folder->unread_count = unread_count; if (! e_folder_tree_add (priv->folder_tree, path, corba_folder)) { CORBA_free (corba_folder); -- cgit