CVS: sylpheedclaws/plugins/vcalendar/src vcal_manager.c,1.1.2.46,1.1.2.47 vcalendar.c,1.2.2.43,1.2.2.44

[email protected] Fri, 15 Dec 2006 12:23:00 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/plugins/vcalendar/src
In directory sunsite.dk:/tmp/cvs-serv18607/src

Modified Files:
      Tag: gtk2
	vcal_manager.c vcalendar.c 
Log Message:
2006-12-15 [colin]	1.91.0cvs3

	* src/vcal_manager.c
		Make sure we don't increment SEQUENCE on replies
		(From RFC2445, 4.8.7.4 Sequence Number)
	* src/vcalendar.c
		Fix "(null)" names

Index: vcal_manager.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/vcalendar/src/vcal_manager.c,v
retrieving revision 1.1.2.46
retrieving revision 1.1.2.47
diff -u -d -r1.1.2.46 -r1.1.2.47
--- vcal_manager.c	2006/12/06 21:29:32	1.1.2.46
+++ vcal_manager.c	2006/12/15 12:22:57	1.1.2.47
@@ -392,7 +392,7 @@
 	icalcomponent_add_property(ievent,
 		icalproperty_new_summary(event->summary));
 	icalcomponent_add_property(ievent,
-		icalproperty_new_sequence(modif ? event->sequence + 1 : event->sequence));
+		icalproperty_new_sequence(modif && !is_reply ? event->sequence + 1 : event->sequence));
 	icalcomponent_add_property(ievent,
 		icalproperty_new_class("PUBLIC"));
 	icalcomponent_add_property(ievent,

Index: vcalendar.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/vcalendar/src/vcalendar.c,v
retrieving revision 1.2.2.43
retrieving revision 1.2.2.44
diff -u -d -r1.2.2.43 -r1.2.2.44
--- vcalendar.c	2006/11/07 11:01:49	1.2.2.43
+++ vcalendar.c	2006/12/15 12:22:57	1.2.2.44
@@ -634,7 +634,7 @@
 	     list && list->data; list = list->next) {
 	     	gchar *attendee = (gchar *)list->data;
 		gchar *name = vcal_manager_get_attendee_name(event, attendee);
-		gchar *ename = g_markup_printf_escaped("%s", name);
+		gchar *ename = g_markup_printf_escaped("%s", name?name:"");
 		gchar *eatt = g_markup_printf_escaped("%s", attendee);
 		enum icalparameter_partstat acode = vcal_manager_get_reply_for_attendee(event, attendee);
 		gchar *answer = vcal_manager_get_reply_text_for_attendee(event, attendee);