+ 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);