projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* update the modest-window-manager; together with the next patch, this
[modest]
/
src
/
widgets
/
modest-header-view-render.c
diff --git
a/src/widgets/modest-header-view-render.c
b/src/widgets/modest-header-view-render.c
index
b3bcbdb
..
c5384ca
100644
(file)
--- a/
src/widgets/modest-header-view-render.c
+++ b/
src/widgets/modest-header-view-render.c
@@
-246,23
+246,28
@@
_modest_header_view_compact_header_cell_data (GtkTreeViewColumn *column, GtkCe
header = g_markup_printf_escaped ("%s", (subject && strlen (subject)) ? subject : _("mail_va_no_subject"));
g_free (subject);
g_object_set (G_OBJECT (subject_cell), "markup", header, NULL);
header = g_markup_printf_escaped ("%s", (subject && strlen (subject)) ? subject : _("mail_va_no_subject"));
g_free (subject);
g_object_set (G_OBJECT (subject_cell), "markup", header, NULL);
+ g_free (header);
set_common_flags (subject_cell, flags);
set_common_flags (subject_cell, flags);
-
+
header = g_markup_printf_escaped ("<small>%s</small>", modest_text_utils_get_display_address (address));
g_free (address);
g_object_set (G_OBJECT (recipient_cell), "markup", header, NULL);
header = g_markup_printf_escaped ("<small>%s</small>", modest_text_utils_get_display_address (address));
g_free (address);
g_object_set (G_OBJECT (recipient_cell), "markup", header, NULL);
-
- g_object_set (G_OBJECT (recipient_cell), "markup", header, NULL);
+ g_free (header);
set_common_flags (recipient_cell, flags);
set_common_flags (recipient_cell, flags);
- tmp_date = modest_text_utils_get_display_date (date);
+ /* in some rare cases, mail might have no Date: field. it case,
+ * don't show the date, instead of bogus 1/1/1970
+ */
+ if (date)
+ tmp_date = modest_text_utils_get_display_date (date);
+ else
+ tmp_date = g_strdup ("");
+
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);
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);
-
- g_free (header);
}
}