diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-31 07:05:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:58 +0800 |
commit | db1a2dd8aad57fb222daa6f82838b33a26f8e742 (patch) | |
tree | 42d90c8e93a4cf035bb9c92de676ad8dcca36fe3 /mail/em-subscription-editor.c | |
parent | 629700ced0d5f84031e514cdb31cd97f985a2598 (diff) | |
download | gsoc2013-evolution-db1a2dd8aad57fb222daa6f82838b33a26f8e742.tar.gz gsoc2013-evolution-db1a2dd8aad57fb222daa6f82838b33a26f8e742.tar.zst gsoc2013-evolution-db1a2dd8aad57fb222daa6f82838b33a26f8e742.zip |
Miscellaneous cleanups.
Reducing diff noise with the account-mgmt branch.
Trying to erode our dependency on EAccount as much as possible, or at
least isolate its usage, to make things easier for me on the branch.
Diffstat (limited to 'mail/em-subscription-editor.c')
-rw-r--r-- | mail/em-subscription-editor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c index ba7bcc1458..baaeb34b3b 100644 --- a/mail/em-subscription-editor.c +++ b/mail/em-subscription-editor.c @@ -1038,14 +1038,19 @@ subscription_editor_constructed (GObject *object) editor = EM_SUBSCRIPTION_EDITOR (object); + /* Pick an initial store based on the default mail account, if + * one wasn't already given in em_subscription_editor_new(). */ if (editor->priv->initial_store == NULL) { EAccount *account; CamelService *service; CamelSession *session; + const gchar *uid; account = e_get_default_account (); + uid = account->uid; + session = em_subscription_editor_get_session (editor); - service = camel_session_get_service (session, account->uid); + service = camel_session_get_service (session, uid); if (CAMEL_IS_SUBSCRIBABLE (service)) editor->priv->initial_store = g_object_ref (service); |