Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 32f1119a04f9a7c821c01d120ae88645 > files > 3

evolution-2.10.0-5mdv2007.1.src.rpm

Index: calendar/gui/e-cal-component-memo-preview.c
===================================================================
--- evolution/calendar/gui/e-cal-component-memo-preview.c	(revision 33281)
+++ evolution/calendar/gui/e-cal-component-memo-preview.c	(working copy)
@@ -138,7 +138,6 @@
 	ECalComponentDateTime dt;
 	gchar *str;
 	GSList *l;
-	gboolean one_added = FALSE;
 
 	g_return_if_fail (E_IS_CAL_COMPONENT (comp));
 
@@ -158,9 +157,7 @@
 	e_cal_component_get_categories_list (comp, &l);
 	if (l) {
 		GSList *node;
-		GString *string = g_string_new (NULL);
 		
-		
 		gtk_html_stream_printf(stream, "<H3>Categories: ");
 
 		for (node = l; node != NULL; node = node->next) {
@@ -172,23 +169,11 @@
 				gtk_html_stream_printf (stream, "<IMG ALT=\"%s\" SRC=\"%s\">",
 							(const char *) node->data, icon_file_uri);
 				g_free (icon_file_uri);
-				one_added = TRUE;
 			}
-			else{
-				if(one_added == FALSE){
-					g_string_append_printf (string, "%s", (const char *) node->data);
-					one_added = TRUE;
-				}
-				else{
-					g_string_append_printf (string, ", %s", (const char *) node->data);
-				}
-			}
+			else
+				gtk_html_stream_printf (stream, "%s ", (const char *) node->data);
 		}
 		
-		gtk_html_stream_printf(stream, string->str);
-
-		g_string_free (string, TRUE);
-	
 		gtk_html_stream_printf(stream, "</H3>");
 
 		e_cal_component_free_categories_list (l);