diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-16 23:40:37 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-12-16 23:58:54 +0800 |
commit | a9cfed5938aef37d95c009411f965ebc185547c1 (patch) | |
tree | d0c6eb1d5acea6752425169aae47e8f4ed4b55ea /mail/em-folder-tree.h | |
parent | df85cb1b7a47f713cb775f648f735e642a1bb71b (diff) | |
download | gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.tar.gz gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.tar.zst gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.zip |
Avoid passing EMailBackend as much as possible.
More mail API churn... reversing some previous API decisions.
I've made some key API changes to EMailSession on the account-mgmt
branch which should allow for this, and will hopefully also benefit
the "email-factory" branch.
EMailBackend barely needs to exist anymore, except as the owner of
EMailSession.
For several low-level functions, we replace its EMailBackend parameter
with EMailSession and EAlertSink parameters; the latter so it can still
pass user alerts up the chain.
Diffstat (limited to 'mail/em-folder-tree.h')
-rw-r--r-- | mail/em-folder-tree.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index e136d680ad..6a60f2bc31 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -26,7 +26,7 @@ #include <gtk/gtk.h> #include <e-util/e-alert-sink.h> -#include <mail/e-mail-backend.h> +#include <mail/e-mail-session.h> #include <mail/em-folder-tree-model.h> /* Standard GObject macros */ @@ -90,9 +90,9 @@ struct _EMFolderTreeClass { }; GType em_folder_tree_get_type (void); -GtkWidget * em_folder_tree_new (EMailBackend *backend, +GtkWidget * em_folder_tree_new (EMailSession *session, EAlertSink *alert_sink); -GtkWidget * em_folder_tree_new_with_model (EMailBackend *backend, +GtkWidget * em_folder_tree_new_with_model (EMailSession *session, EAlertSink *alert_sink, EMFolderTreeModel *model); EActivity * em_folder_tree_new_activity (EMFolderTree *folder_tree); @@ -101,7 +101,7 @@ PangoEllipsizeMode void em_folder_tree_set_ellipsize (EMFolderTree *folder_tree, PangoEllipsizeMode ellipsize); EAlertSink * em_folder_tree_get_alert_sink (EMFolderTree *folder_tree); -EMailBackend * em_folder_tree_get_backend (EMFolderTree *folder_tree); +EMailSession * em_folder_tree_get_session (EMFolderTree *folder_tree); void em_folder_tree_enable_drag_and_drop (EMFolderTree *folder_tree); void em_folder_tree_set_excluded (EMFolderTree *folder_tree, |