- TNY_GTK_HEADER_LIST_MODEL_DATE_SENT_TIME_T_COLUMN, &date,
- -1);
-
- rendobj = G_OBJECT(renderer);
- display_date = modest_text_utils_get_display_date (date);
- header = g_strdup_printf ("%s %s\n%s",
- modest_text_utils_get_display_address (address),
- display_date, subject);
- g_free (address);
+ TNY_GTK_HEADER_LIST_MODEL_DATE_SENT_TIME_T_COLUMN, &date,
+ TNY_GTK_HEADER_LIST_MODEL_INSTANCE_COLUMN, &msg_header,
+ -1);
+ /* flags */
+ /* FIXME: we might gain something by doing all the g_object_set's at once */
+ if (flags & TNY_HEADER_FLAG_ATTACHMENTS)
+ g_object_set (G_OBJECT (attach_cell), "pixbuf",
+ get_pixbuf_for_flag (TNY_HEADER_FLAG_ATTACHMENTS),
+ NULL);
+ else
+ g_object_set (G_OBJECT (attach_cell), "pixbuf",
+ NULL, NULL);
+
+ if (msg_header)
+ prio = tny_header_get_priority (msg_header);
+ g_object_set (G_OBJECT (priority_cell), "pixbuf",
+ get_pixbuf_for_flag (prio),
+ NULL);
+
+ if (subject && strlen (subject)) {
+ gchar* escaped_subject = g_markup_escape_text (subject, -1);
+ g_object_set (G_OBJECT (subject_cell), "markup",
+ escaped_subject, NULL);
+ g_free (escaped_subject);
+ } else {
+ g_object_set (G_OBJECT (subject_cell), "markup",
+ _("mail_va_no_subject"), NULL);
+ }
+