diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2014-02-16 22:36:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2014-03-03 08:36:01 +0800 |
commit | c53fbc0b8f3b98827d6816a627bdd4d467b84f74 (patch) | |
tree | 10eb8683b6d413f9ae6946dcaf303c29027a84ef /mail/e-mail-config-assistant.c | |
parent | 1e3d8b5c68754c377c54423f1fb9a322eb3ec9e8 (diff) | |
download | gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.gz gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.bz2 gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.lz gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.xz gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.zst gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.zip |
Miscellaneous cleanups.
Diffstat (limited to 'mail/e-mail-config-assistant.c')
-rw-r--r-- | mail/e-mail-config-assistant.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mail/e-mail-config-assistant.c b/mail/e-mail-config-assistant.c index e847493c6b..df5799ee6c 100644 --- a/mail/e-mail-config-assistant.c +++ b/mail/e-mail-config-assistant.c @@ -380,6 +380,7 @@ mail_config_assistant_select_account_node (const gchar *account_uid) EShellSidebar *shell_sidebar; EMFolderTree *folder_tree = NULL; GtkWindow *active_window; + const gchar *active_view; g_return_if_fail (account_uid != NULL); @@ -390,8 +391,9 @@ mail_config_assistant_select_account_node (const gchar *account_uid) return; shell_window = E_SHELL_WINDOW (active_window); + active_view = e_shell_window_get_active_view (shell_window); - if (g_strcmp0 (e_shell_window_get_active_view (shell_window), "mail") != 0) + if (g_strcmp0 (active_view, "mail") != 0) return; shell_view = e_shell_window_get_shell_view (shell_window, "mail"); @@ -437,11 +439,15 @@ mail_config_assistant_close_cb (GObject *object, g_error_free (error); } else { - ESource *account; + ESource *source; + + source = e_mail_config_assistant_get_account_source (assistant); + if (source != NULL) { + const gchar *uid; - account = e_mail_config_assistant_get_account_source (assistant); - if (account) - mail_config_assistant_select_account_node (e_source_get_uid (account)); + uid = e_source_get_uid (source); + mail_config_assistant_select_account_node (uid); + } gtk_widget_destroy (GTK_WIDGET (assistant)); } |