From e3262cdc7e24aece3074a0c92ce3e529acf3568e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 10 Dec 2003 18:36:13 +0000 Subject: Update the unread count in the model if the folder got new mail. 2003-12-10 Jeffrey Stedfast * mail-folder-cache.c (real_flush_updates): Update the unread count in the model if the folder got new mail. * em-folder-selection.c (em_select_folder): Updated. * em-folder-selection-button.c (em_folder_selection_button_clicked): Updated. * em-folder-tree-model.c (em_folder_tree_model_set_unread_count): New function to update the unread count for a folder. * mail-component.c (mail_component_peek_tree_model): Don't ref the model. Also renamed s/get/peek/ svn path=/trunk/; revision=23910 --- mail/mail-component.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index ea3d0e4c73..744ec83ad3 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -698,9 +698,8 @@ mail_component_remove_folder (MailComponent *component, CamelStore *store, const EMFolderTreeModel * -mail_component_get_tree_model (MailComponent *component) +mail_component_peek_tree_model (MailComponent *component) { - g_object_ref (component->priv->model); return component->priv->model; } -- cgit v1.2.3