diff options
author | Milan Crha <mcrha@redhat.com> | 2011-09-26 17:45:59 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-09-26 17:45:59 +0800 |
commit | e0548d25707ad8c4713e2e74c622a92bf4988545 (patch) | |
tree | be2dd1051fa169b90b959cd80b9729a1416d0393 /plugins | |
parent | 4046d1944855274c8a6c406392ee734943142f90 (diff) | |
download | gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.tar gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.tar.gz gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.tar.bz2 gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.tar.lz gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.tar.xz gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.tar.zst gsoc2013-evolution-e0548d25707ad8c4713e2e74c622a92bf4988545.zip |
Bug #351025 - Make the order of the mail accounts configurable
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mark-all-read/mark-all-read.c | 6 |
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); |