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 /mail/em-folder-utils.c | |
parent | 8c426446929d94c390c550177695a9f055f779ae (diff) | |
download | gsoc2013-evolution-f615000f6c1f549db7ea29ff8a3a011b1bd850cc.tar.gz 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 'mail/em-folder-utils.c')
-rw-r--r-- | mail/em-folder-utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index 54586ad763..e72b8014ad 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -487,7 +487,7 @@ em_folder_utils_copy_folder (GtkWindow *parent, label = delete ? _("_Move") : _("C_opy"); title = delete ? _("Move Folder To") : _("Copy Folder To"); - model = em_folder_tree_model_get_default (backend); + model = em_folder_tree_model_get_default (); dialog = em_folder_selector_new ( parent, backend, model, @@ -565,10 +565,10 @@ em_folder_utils_create_folder (GtkWindow *parent, shell = e_shell_backend_get_shell (E_SHELL_BACKEND (backend)); shell_settings = e_shell_get_shell_settings (shell); - model = em_folder_tree_model_new (backend); - session = e_mail_backend_get_session (backend); - em_folder_tree_model_set_session (model, session); + model = em_folder_tree_model_new (); + em_folder_tree_model_set_backend (model, backend); + session = e_mail_backend_get_session (backend); list = camel_session_list_services (CAMEL_SESSION (session)); for (link = list; link != NULL; link = g_list_next (link)) { |