aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 23:30:11 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:06 +0800
commit5d1d6f4969e37f67e0900aa51ba6a51a3222ed1d (patch)
treeebaae5530392b980494090e7e6dfa0950e851537 /mail/em-folder-tree-model.c
parent9beae6f09e3306e471daf50d1bccc33fd15b3847 (diff)
downloadgsoc2013-evolution-5d1d6f4969e37f67e0900aa51ba6a51a3222ed1d.tar.gz
gsoc2013-evolution-5d1d6f4969e37f67e0900aa51ba6a51a3222ed1d.tar.zst
gsoc2013-evolution-5d1d6f4969e37f67e0900aa51ba6a51a3222ed1d.zip
Change em_folder_tree_model_user_marked_unread() params.
Take a CamelFolder instead of a folder URI string.
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index c989d4e205..de9dfe6db1 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1290,12 +1290,13 @@ em_folder_tree_model_lookup_uri (EMFolderTreeModel *model,
void
em_folder_tree_model_user_marked_unread (EMFolderTreeModel *model,
- const gchar *folder_uri,
+ CamelFolder *folder,
guint n_marked)
{
GtkTreeRowReference *reference;
GtkTreePath *path;
GtkTreeIter iter;
+ gchar *folder_uri;
guint unread;
/* The user marked messages in the given folder as unread.
@@ -1303,9 +1304,12 @@ em_folder_tree_model_user_marked_unread (EMFolderTreeModel *model,
* event as new mail arriving. */
g_return_if_fail (EM_IS_FOLDER_TREE_MODEL (model));
- g_return_if_fail (folder_uri != NULL);
+ g_return_if_fail (CAMEL_IS_FOLDER (folder));
+ folder_uri = e_mail_folder_uri_from_folder (folder);
reference = em_folder_tree_model_lookup_uri (model, folder_uri);
+ g_free (folder_uri);
+
g_return_if_fail (gtk_tree_row_reference_valid (reference));
path = gtk_tree_row_reference_get_path (reference);