From 763081aa862908e845bc780b784d939a07abd508 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 30 Jan 2013 12:20:16 -0500 Subject: Fix up error handling around e_book/cal_client_connect_finish(). --- calendar/alarm-notify/alarm-notify.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'calendar/alarm-notify/alarm-notify.c') diff --git a/calendar/alarm-notify/alarm-notify.c b/calendar/alarm-notify/alarm-notify.c index a4552a055b..73fadc100c 100644 --- a/calendar/alarm-notify/alarm-notify.c +++ b/calendar/alarm-notify/alarm-notify.c @@ -229,9 +229,9 @@ client_connect_cb (GObject *source_object, GAsyncResult *result, gpointer user_data) { - ESource *source = E_SOURCE (source_object); AlarmNotify *an = ALARM_NOTIFY (user_data); EClient *client; + ESource *source; ECalClient *cal_client; GError *error = NULL; @@ -243,14 +243,13 @@ client_connect_cb (GObject *source_object, ((client == NULL) && (error != NULL))); if (error != NULL) { - debug ( - ("Failed to open '%s' (%s): %s", - e_source_get_display_name (source), - e_source_get_uid (source), error->message)); + debug (("%s", error->message)); g_error_free (error); return; } + source = e_client_get_source (client); + g_hash_table_insert ( an->priv->clients, g_object_ref (source), client); -- cgit v1.2.3