diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-24 05:09:24 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:19 +0800 |
commit | 7050475f84247fb15e24aa1bb31502106c18815d (patch) | |
tree | 60e500f221d5f97b241045b10806c5c4ddbcc7c1 /mail/em-folder-selector.c | |
parent | a98cb0a9820d2119bf10c317e5f6a9d56dd9073c (diff) | |
download | gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.gz gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.bz2 gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.lz gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.xz gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.zst gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.zip |
EMFolderTree: Store an EMailBackend instead of an EMailSession.
All this so EMFolderTree can submit EActivity instances for async ops.
You can obtain an EMailSession from an EMailBackend, but not vice versa.
Creates lots of pretty ripples in the mail code, but ultimately reduces
complexity. So it's a code cleanup of sorts.
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r-- | mail/em-folder-selector.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index 0f2bbc79f2..71e056e762 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -111,14 +111,17 @@ em_folder_selector_get_type (void) static void emfs_response (GtkWidget *dialog, gint response, EMFolderSelector *emfs) { + EMailBackend *backend; + if (response != EM_FOLDER_SELECTOR_RESPONSE_NEW) return; g_object_set_data ((GObject *)emfs->emft, "select", GUINT_TO_POINTER (1)); + backend = em_folder_tree_get_backend (emfs->emft); + em_folder_utils_create_folder ( - GTK_WINDOW (dialog), emfs->emft, - em_folder_tree_get_session (emfs->emft), NULL); + GTK_WINDOW (dialog), backend, emfs->emft, NULL); g_signal_stop_emission_by_name (emfs, "response"); } |