Index: calendar/gui/e-cal-component-memo-preview.c
===================================================================
--- calendar/gui/e-cal-component-memo-preview.c (revision 33281)
+++ 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, "
Categories: ");
for (node = l; node != NULL; node = node->next) {
@@ -172,23 +169,11 @@
gtk_html_stream_printf (stream, "",
(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, "
");
e_cal_component_free_categories_list (l);