aboutsummaryrefslogtreecommitdiffstats
path: root/capplet
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-05-27 05:19:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-27 05:19:41 +0800
commit0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110 (patch)
treed282033033e0fd8bb3c1632084d4c09f90dbbb2b /capplet
parent3f213cfbef9142d117fbd9219cf12cbecc39f59e (diff)
downloadgsoc2013-evolution-0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110.tar.gz
gsoc2013-evolution-0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110.tar.zst
gsoc2013-evolution-0b1cd2dd5b0b2b35a0c12032b54ac51b97b22110.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'capplet')
-rw-r--r--capplet/settings/mail-guess-servers.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/capplet/settings/mail-guess-servers.c b/capplet/settings/mail-guess-servers.c
index d6a65e8c53..33a8699e03 100644
--- a/capplet/settings/mail-guess-servers.c
+++ b/capplet/settings/mail-guess-servers.c
@@ -226,15 +226,8 @@ is_online (void)
{
EShell *shell;
+ /* FIXME Pass this in. */
shell = e_shell_get_default ();
- if (!shell) {
- /* FIXME: do we always have a shell? What do we do if one
- * hasn't been created yet? e_shell_get_default() won't create
- * a shell; it will just return one that has been created
- * before.
- */
- return FALSE;
- }
return e_shell_get_online (shell);
}
@@ -252,7 +245,9 @@ guess_when_online (EmailProvider *provider)
proxy = e_proxy_new ();
e_proxy_setup_proxy (proxy);
- url = g_strdup_printf("%s/%s", "http://api.gnome.org/evolution/autoconfig", provider->domain);
+ url = g_strdup_printf (
+ "%s/%s", "http://api.gnome.org/evolution/autoconfig",
+ provider->domain);
parsed = soup_uri_new (url);
soup_uri_free (parsed);