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
committerMatthew Barnes <mbarnes@redhat.com>2011-05-03 23:30:11 +0800
commit1957378edf2264426c77571bde90c6bfeb7e50ce (patch)
tree30f130e50dd21bc17685edc37c3df422f3c09f07 /mail/em-folder-tree-model.c
parent3bdba393f75bf3073d4b3e325fc4092dc1268ea9 (diff)
downloadgsoc2013-evolution-1957378edf2264426c77571bde90c6bfeb7e50ce.tar.gz
gsoc2013-evolution-1957378edf2264426c77571bde90c6bfeb7e50ce.tar.zst
gsoc2013-evolution-1957378edf2264426c77571bde90c6bfeb7e50ce.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);