diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-09-26 23:45:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-09-26 23:45:11 +0800 |
commit | f615000f6c1f549db7ea29ff8a3a011b1bd850cc (patch) | |
tree | 0555f6bdd6469dbfcdc77bd2ba7ac56aaeded849 /plugins/mark-all-read | |
parent | 8c426446929d94c390c550177695a9f055f779ae (diff) | |
download | gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar.gz gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar.bz2 gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar.lz gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar.xz gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar.zst gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.zip |
EMFolderTreeModel: Don't use parameters in "get_default" functions.
Drop EMFolderTreeModel's "session" property now that it has a "backend"
property and call em_folder_tree_model_set_backend() where we used to
call em_folder_tree_model_set_session().
The session can still be obtained through e_mail_backend_get_session().
Diffstat (limited to 'plugins/mark-all-read')
-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 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); |