From db1a2dd8aad57fb222daa6f82838b33a26f8e742 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 30 Aug 2011 19:05:30 -0400 Subject: 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. --- mail/em-subscription-editor.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/em-subscription-editor.c') 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); -- cgit