aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/common
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-20 18:56:06 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-20 20:06:19 +0800
commit5d0878967ee21a039ef599222b1cf3eb606354d4 (patch)
tree790cfcbf63fea7292740f182dd612ab20244f6e8 /calendar/common
parentf5f2132d60cdd1884c6343f759aadfd38a159e04 (diff)
downloadgsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.gz
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.bz2
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.lz
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.xz
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.zst
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'calendar/common')
-rw-r--r--calendar/common/authentication.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index baacc1ead4..801a3907bf 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -35,7 +35,10 @@
static GHashTable *source_lists_hash = NULL;
static gchar *
-auth_func_cb (ECal *ecal, const gchar *prompt, const gchar *key, gpointer user_data)
+auth_func_cb (ECal *ecal,
+ const gchar *prompt,
+ const gchar *key,
+ gpointer user_data)
{
gboolean remember;
gchar *password, *auth_domain;
@@ -48,11 +51,16 @@ auth_func_cb (ECal *ecal, const gchar *prompt, const gchar *key, gpointer user_d
password = e_passwords_get_password (component_name, key);
if (!password)
- password = e_passwords_ask_password (_("Enter password"), component_name, key, prompt,
- E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET|E_PASSWORDS_ONLINE,
- &remember,
- NULL);
+ password = e_passwords_ask_password (
+ _("Enter password"),
+ component_name, key, prompt,
+ E_PASSWORDS_REMEMBER_FOREVER |
+ E_PASSWORDS_SECRET |
+ E_PASSWORDS_ONLINE,
+ &remember, NULL);
+
g_free (auth_domain);
+
return password;
}
@@ -139,7 +147,8 @@ e_auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
if (source_list) {
GSList *gl;
- for (gl = e_source_list_peek_groups (source_list); gl != NULL && source == NULL; gl = gl->next) {
+ for (gl = e_source_list_peek_groups (source_list);
+ gl != NULL && source == NULL; gl = gl->next) {
GSList *sl;
for (sl = e_source_group_peek_sources (gl->data); sl != NULL; sl = sl->next) {