aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/alarm-notify
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-01-31 01:20:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-01-31 01:45:55 +0800
commit763081aa862908e845bc780b784d939a07abd508 (patch)
tree1a060b3cc1ae28e915348939cbbcdd28416a13b5 /calendar/alarm-notify
parent0ff254b3a8946244b645f2ea74316926aa109ab6 (diff)
downloadgsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar
gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.gz
gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.bz2
gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.lz
gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.xz
gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.zst
gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.zip
Fix up error handling around e_book/cal_client_connect_finish().
Diffstat (limited to 'calendar/alarm-notify')
-rw-r--r--calendar/alarm-notify/alarm-notify.c9
1 files changed, 4 insertions, 5 deletions
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);