aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mark-all-read
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-06 00:19:33 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-06 00:19:33 +0800
commit8fd93c9042bb30e53ce88303f8a0789a6ca688eb (patch)
tree543fc3e3548d9b296cb4ddcda597cf4f64f306bd /plugins/mark-all-read
parent1f10f3ec681c3ed755ce4e02a4ca0117b9243b2b (diff)
downloadgsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.tar
gsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.tar.gz
gsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.tar.bz2
gsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.tar.lz
gsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.tar.xz
gsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.tar.zst
gsoc2013-evolution-8fd93c9042bb30e53ce88303f8a0789a6ca688eb.zip
First successful build
Diffstat (limited to 'plugins/mark-all-read')
-rw-r--r--plugins/mark-all-read/mark-all-read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c
index ab8549495b..4fe19cf71b 100644
--- a/plugins/mark-all-read/mark-all-read.c
+++ b/plugins/mark-all-read/mark-all-read.c
@@ -318,7 +318,7 @@ scan_folder_tree_for_unread_helper (GtkTreeModel *model,
}
static gint
-scan_folder_tree_for_unread (EMailBackend *backend, const gchar *folder_uri)
+scan_folder_tree_for_unread (const gchar *folder_uri)
{
GtkTreeRowReference *reference;
EMFolderTreeModel *model;
@@ -338,7 +338,7 @@ scan_folder_tree_for_unread (EMailBackend *backend, const gchar *folder_uri)
if (folder_uri == NULL)
return 0;
- model = em_folder_tree_model_get_default (backend);
+ model = em_folder_tree_model_get_default ();
reference = em_folder_tree_model_lookup_uri (model, folder_uri);
if (gtk_tree_row_reference_valid (reference)) {
@@ -602,7 +602,7 @@ update_actions_cb (EShellView *shell_view,
g_object_get (shell_sidebar, "folder-tree", &folder_tree, NULL);
folder_uri = em_folder_tree_get_selected_uri (folder_tree);
- visible = (scan_folder_tree_for_unread (E_MAIL_BACKEND (e_shell_view_get_shell_backend (shell_view)), folder_uri) > 0);
+ visible = (scan_folder_tree_for_unread (folder_uri) > 0);
gtk_action_set_visible (action, visible);
g_object_unref (folder_tree);