From 5d0878967ee21a039ef599222b1cf3eb606354d4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 20 Jun 2010 06:56:06 -0400 Subject: Coding style and whitespace cleanup. --- calendar/common/authentication.c | 21 +++++++++++++++------ calendar/gui/ea-calendar.c | 8 ++++++-- 2 files changed, 21 insertions(+), 8 deletions(-) (limited to 'calendar') 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) { diff --git a/calendar/gui/ea-calendar.c b/calendar/gui/ea-calendar.c index dcdf8bd650..84ce9d8f6b 100644 --- a/calendar/gui/ea-calendar.c +++ b/calendar/gui/ea-calendar.c @@ -36,9 +36,13 @@ EA_FACTORY (EA_TYPE_CAL_VIEW, ea_cal_view, ea_cal_view_new) EA_FACTORY (EA_TYPE_DAY_VIEW, ea_day_view, ea_day_view_new) -EA_FACTORY_GOBJECT (EA_TYPE_DAY_VIEW_MAIN_ITEM, ea_day_view_main_item, ea_day_view_main_item_new) +EA_FACTORY_GOBJECT ( + EA_TYPE_DAY_VIEW_MAIN_ITEM, + ea_day_view_main_item, ea_day_view_main_item_new) EA_FACTORY (EA_TYPE_WEEK_VIEW, ea_week_view, ea_week_view_new) -EA_FACTORY_GOBJECT (EA_TYPE_WEEK_VIEW_MAIN_ITEM, ea_week_view_main_item, ea_week_view_main_item_new) +EA_FACTORY_GOBJECT ( + EA_TYPE_WEEK_VIEW_MAIN_ITEM, + ea_week_view_main_item, ea_week_view_main_item_new) EA_FACTORY (EA_TYPE_GNOME_CALENDAR, ea_gnome_calendar, ea_gnome_calendar_new) static gboolean ea_calendar_focus_watcher (GSignalInvocationHint *ihint, -- cgit