+ g_object_set (G_OBJECT (priority_cell), "pixbuf",
+ get_pixbuf_for_flag (prio, is_calendar),
+ NULL);
+
+ set_cell_text (subject_cell, (subject && subject[0] != 0)?subject:_("mail_va_no_subject"),
+ flags);
+ g_free (subject);
+
+ /* Show the list of senders/recipients */
+ addresses = modest_text_utils_get_display_addresses ((const gchar *) recipients);
+ set_cell_text (recipient_cell, (addresses) ? addresses : _("mail_va_no_to"), flags);
+ g_free (addresses);
+ g_free (recipients);
+
+ /* Show status (outbox folder) or sent date */
+ if (header_mode == MODEST_HEADER_VIEW_COMPACT_HEADER_MODE_OUTBOX) {
+ ModestTnySendQueueStatus status = MODEST_TNY_SEND_QUEUE_UNKNOWN;
+ const gchar *status_str = "";
+ if (msg_header != NULL) {
+ status = modest_tny_all_send_queues_get_msg_status (msg_header);
+ if (status == MODEST_TNY_SEND_QUEUE_SUSPENDED) {
+ tny_header_set_flag (msg_header, TNY_HEADER_FLAG_SUSPENDED);
+ }
+ }
+
+ status_str = get_status_string (status);
+ set_cell_text (date_or_status_cell, status_str, flags);
+ } else {
+#if GTK_CHECK_VERSION (2, 12, 0)
+ ModestHeaderView *header_view;
+ header_view = MODEST_HEADER_VIEW (gtk_tree_view_column_get_tree_view (column));
+ set_cell_text (date_or_status_cell,
+ date ? _modest_header_view_get_display_date (header_view, date) : "",
+ flags);
+#else
+ set_cell_text (date_or_status_cell,
+ date ? modest_text_utils_get_display_date (date) : "",
+ flags);
+#endif
+ }
+ if (msg_header != NULL)
+ g_object_unref (msg_header);