[evolution/gnome-2-28] Bug #594407 - Alarms won't go away



commit aa8bf1b20cc1744ef3e150a1b2e136b272229e79
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 8 13:17:28 2009 +0200

    Bug #594407 - Alarms won't go away

 calendar/gui/alarm-notify/alarm-queue.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index 99e9a4f..c031a54 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -657,7 +657,6 @@ remove_comp (ClientAlarms *ca, ECalComponentId *id)
  */
 struct _query_msg {
 	Message header;
-	ECal *client;
 	GList *objects;
 	gpointer data;
 };
@@ -699,14 +698,12 @@ query_objects_changed_async (struct _query_msg *msg)
 	icaltimezone *zone;
 	CompQueuedAlarms *cqa;
 	GList *l;
-	ECal *client;
 	GList *objects;
 
-	client = msg->client;
 	ca = msg->data;
 	objects = msg->objects;
 
-	from = config_data_get_last_notification_time (client);
+	from = config_data_get_last_notification_time (ca->client);
 	if (from == -1)
 		from = time (NULL);
 	else
@@ -809,7 +806,6 @@ query_objects_changed_cb (ECal *client, GList *objects, gpointer data)
 
 	msg = g_slice_new0 (struct _query_msg);
 	msg->header.func = (MessageFunc) query_objects_changed_async;
-	msg->client = client;
 	msg->objects = duplicate_ical (objects);
 	msg->data = data;
 
@@ -824,10 +820,8 @@ query_objects_removed_async (struct _query_msg *msg)
 {
 	ClientAlarms *ca;
 	GList *l;
-	ECal *client;
 	GList *objects;
 
-	client = msg->client;
 	ca = msg->data;
 	objects = msg->objects;
 
@@ -853,7 +847,6 @@ query_objects_removed_cb (ECal *client, GList *objects, gpointer data)
 
 	msg = g_slice_new0 (struct _query_msg);
 	msg->header.func = (MessageFunc) query_objects_removed_async;
-	msg->client = client;
 	msg->objects = duplicate_ecal (objects);
 	msg->data = data;
 
@@ -1004,12 +997,10 @@ on_dialog_objs_removed_async (struct _query_msg *msg)
 	const gchar *our_uid;
 	GList *l;
 	TrayIconData *tray_data;
-	ECal *client;
 	GList *objects;
 
 	d(printf("%s:%d (on_dialog_objs_removed_async)\n",__FILE__, __LINE__));
 
-	client = msg->client;
 	tray_data = msg->data;
 	objects = msg->objects;
 
@@ -1040,7 +1031,6 @@ on_dialog_objs_removed_cb (ECal *client, GList *objects, gpointer data)
 
 	msg = g_slice_new0 (struct _query_msg);
 	msg->header.func = (MessageFunc) on_dialog_objs_removed_async;
-	msg->client = client;
 	msg->objects = objects;
 	msg->data = data;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]