aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mark-all-read
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-09-26 17:45:59 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-26 18:56:08 +0800
commitd230dd72bb6aff738974ccaa91bfad5d321e9c0c (patch)
tree1c4f343340ad4a613e0016e93301fce83d2ef130 /plugins/mark-all-read
parent3262bdb1c49d65c5fa7d2fc3b931784bfcdb57da (diff)
downloadgsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.tar
gsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.tar.gz
gsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.tar.bz2
gsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.tar.lz
gsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.tar.xz
gsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.tar.zst
gsoc2013-evolution-d230dd72bb6aff738974ccaa91bfad5d321e9c0c.zip
Bug #351025 - Make the order of the mail accounts configurable
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 4fe19cf71b..ab8549495b 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 (const gchar *folder_uri)
+scan_folder_tree_for_unread (EMailBackend *backend, const gchar *folder_uri)
{
GtkTreeRowReference *reference;
EMFolderTreeModel *model;
@@ -338,7 +338,7 @@ scan_folder_tree_for_unread (const gchar *folder_uri)
if (folder_uri == NULL)
return 0;
- model = em_folder_tree_model_get_default ();
+ model = em_folder_tree_model_get_default (backend);
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 (folder_uri) > 0);
+ visible = (scan_folder_tree_for_unread (E_MAIL_BACKEND (e_shell_view_get_shell_backend (shell_view)), folder_uri) > 0);
gtk_action_set_visible (action, visible);
g_object_unref (folder_tree);