View | Details | Raw Unified
Collapse All | Expand All

(-) calendar/gui/e-cal-component-memo-preview.c (-17 / +2 lines)
 Lines 138-144    Link Here 
	ECalComponentDateTime dt;
	ECalComponentDateTime dt;
	gchar *str;
	gchar *str;
	GSList *l;
	GSList *l;
	gboolean one_added = FALSE;
	g_return_if_fail (E_IS_CAL_COMPONENT (comp));
	g_return_if_fail (E_IS_CAL_COMPONENT (comp));
 Lines 158-166    Link Here 
	e_cal_component_get_categories_list (comp, &l);
	e_cal_component_get_categories_list (comp, &l);
	if (l) {
	if (l) {
		GSList *node;
		GSList *node;
		GString *string = g_string_new (NULL);
		
		
		
		gtk_html_stream_printf(stream, "<H3>Categories: ");
		gtk_html_stream_printf(stream, "<H3>Categories: ");
		for (node = l; node != NULL; node = node->next) {
		for (node = l; node != NULL; node = node->next) {
 Lines 172-194    Link Here 
				gtk_html_stream_printf (stream, "<IMG ALT=\"%s\" SRC=\"%s\">",
				gtk_html_stream_printf (stream, "<IMG ALT=\"%s\" SRC=\"%s\">",
							(const char *) node->data, icon_file_uri);
							(const char *) node->data, icon_file_uri);
				g_free (icon_file_uri);
				g_free (icon_file_uri);
				one_added = TRUE;
			}
			}
			else{
			else
				if(one_added == FALSE){
				gtk_html_stream_printf (stream, "%s ", (const char *) node->data);
					g_string_append_printf (string, "%s", (const char *) node->data);
					one_added = TRUE;
				}
				else{
					g_string_append_printf (string, ", %s", (const char *) node->data);
				}
			}
		}
		}
		
		
		gtk_html_stream_printf(stream, string->str);
		g_string_free (string, TRUE);
	
		gtk_html_stream_printf(stream, "</H3>");
		gtk_html_stream_printf(stream, "</H3>");
		e_cal_component_free_categories_list (l);
		e_cal_component_free_categories_list (l);