From 4ad72d24ee36553c85c1bbf21b22c46f77c2ac82 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 20 Aug 2003 10:17:18 +0000 Subject: Merged from calendar-views-with-model branch svn path=/trunk/; revision=22308 --- calendar/gui/alarm-notify/alarm-notify.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'calendar/gui/alarm-notify') diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c index 20ba5547f1..800eeb80f6 100644 --- a/calendar/gui/alarm-notify/alarm-notify.c +++ b/calendar/gui/alarm-notify/alarm-notify.c @@ -445,16 +445,17 @@ alarm_notify_add_calendar (AlarmNotify *an, const char *str_uri, gboolean load_a /* we only add the URI to load_afterwards if we open it correctly */ lc = g_new (LoadedClient, 1); + lc->client = client; + lc->uri = uri; + lc->refcount = 1; + lc->timeout_id = -1; + g_signal_connect (G_OBJECT (client), "cal_opened", G_CALLBACK (cal_opened_cb), lc); if (cal_client_open_calendar (client, str_uri, FALSE)) { - lc->client = client; - lc->uri = uri; - lc->refcount = 1; - lc->timeout_id = -1; g_hash_table_insert (priv->uri_client_hash, g_strdup (str_uri), lc); } else { -- cgit v1.2.3