[evolution-patches] [calendar] fix for #57142



This makes sure we never add the "Untitled appointment" description to
alarms, so when showing them, unless they have a description of their
own, the event's description will be shown instead.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.294
diff -u -p -r1.294 ChangeLog
--- ChangeLog	12 Jul 2004 09:08:36 -0000	1.294
+++ ChangeLog	13 Jul 2004 12:35:12 -0000
@@ -1,3 +1,10 @@
+2004-07-13  Rodrigo Moya <rodrigo novell com>
+
+	Fixes #57142
+
+	* libecal/e-cal-component.c (ensure_alarm_properties_cb): never
+	set "Untitled appointment" as the description for the alarms.
+
 2004-07-12  Sivaiah Nallagatla   <snallagatla novell com>
 
 	* backends/groupwise/e-cal-backend-groupwise.c
Index: libecal/e-cal-component.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal-component.c,v
retrieving revision 1.8
diff -u -p -r1.8 e-cal-component.c
--- libecal/e-cal-component.c	7 May 2004 16:04:17 -0000	1.8
+++ libecal/e-cal-component.c	13 Jul 2004 12:35:18 -0000
@@ -1214,13 +1214,12 @@ ensure_alarm_properties_cb (gpointer key
 		if (prop)
 			break;
 
-		if (!priv->summary.prop)
-			str = _("Untitled appointment");
-		else
+		if (priv->summary.prop) {
 			str = icalproperty_get_summary (priv->summary.prop);
 
-		prop = icalproperty_new_description (str);
-		icalcomponent_add_property (alarm, prop);
+			prop = icalproperty_new_description (str);
+			icalcomponent_add_property (alarm, prop);
+		}
 
 		break;
 


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