[evolution-patches] [exchange-calendar-alarms] fix 316710



hi

   here is a patch to fix 316710.
   the key created for storing in 
   the hashtable of AlarmNotifyPrivate
   structure needs to be created from
   EUri rather than ESource to avoid 
   generating incomplete keys.

  regards
 
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2833
diff -u -p -w -r1.2833 ChangeLog
--- ChangeLog	21 Oct 2005 10:02:34 -0000	1.2833
+++ ChangeLog	8 Nov 2005 05:44:23 -0000
@@ -1,3 +1,10 @@
+2005-11-08  P S Chakravarthi <pchakravarthi novell com>
+
+	Fixes #316710
+	* gui/alarm-notify (alarm_notify_add_calendar):
+	Built the uri string to be used as key for hashtable entries from EUri 
+	rather than directly from e_source API. 
+
 2005-10-21  Mubeen Jukaku  <jmubeen novell com>
 
 	Sankar Committting for Mubeen
Index: gui/alarm-notify/alarm-notify.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/alarm-notify/alarm-notify.c,v
retrieving revision 1.51
diff -u -p -w -r1.51 alarm-notify.c
--- gui/alarm-notify/alarm-notify.c	13 Jul 2005 10:36:15 -0000	1.51
+++ gui/alarm-notify/alarm-notify.c	8 Nov 2005 05:44:23 -0000
@@ -326,13 +326,19 @@ alarm_notify_add_calendar (AlarmNotify *
 {
 	AlarmNotifyPrivate *priv;
 	ECal *client;
+	EUri *e_uri;
 	char *str_uri;
+	char *uri;
 	g_return_if_fail (an != NULL);
 	g_return_if_fail (IS_ALARM_NOTIFY (an));
 	
-
+	/* Make sure the uri is properly generated for all types of backends */
 	priv = an->priv;
-	str_uri = e_source_get_uri (source);
+	uri = e_source_get_uri (source);
+	e_uri = e_uri_new (uri);
+	str_uri = e_uri_to_string (e_uri, FALSE);
+	e_uri_free (e_uri);
+	g_free (uri);
 	
 	g_mutex_lock (an->priv->mutex);
 	/* See if we already know about this uri */


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