- tmp_date = modest_text_utils_get_display_date (date);
- display_date = g_strdup_printf ("<small>%s</small>", tmp_date);
- g_object_set (G_OBJECT (date_cell), "markup", display_date, NULL);
- g_free (tmp_date);
- g_free (display_date);
- set_common_flags (date_cell, flags);
+ /* FIXME: we hardcode the color to #666666; instead we should use SecondaryTextColour from the
+ * theme (gtkrc file) */
+ modest_text_utils_get_display_address (address); /* changed in-place */
+ set_cell_text (recipient_cell, address, flags, RENDER_CELL_STYLE_GREY);
+ g_free (address);
+
+ 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, RENDER_CELL_STYLE_GREY);
+ } else {
+ set_cell_text (date_or_status_cell, date ? modest_text_utils_get_display_date (date) : "",
+ flags, RENDER_CELL_STYLE_GREY);
+ }