#include <modest-runtime.h>
#include <glib/gi18n.h>
#include <modest-platform.h>
+#include <string.h>
static GdkPixbuf*
get_pixbuf_for_flag (TnyHeaderFlags flag)
static GdkPixbuf *low_attachments_pixbuf = NULL;
static GdkPixbuf *high_pixbuf = NULL;
static GdkPixbuf *low_pixbuf = NULL;
+ static GdkPixbuf *normal_pixbuf = NULL;
+
TnyHeaderPriorityFlags prior;
prior = flags & TNY_HEADER_FLAG_PRIORITY;
if (G_UNLIKELY(!normal_attachments_pixbuf))
normal_attachments_pixbuf = modest_platform_get_icon (MODEST_HEADER_ICON_ATTACH_NORM_PRIORITY);
return normal_attachments_pixbuf;
- }
+ } else {
+ if (G_UNLIKELY(!normal_pixbuf))
+ normal_pixbuf = modest_platform_get_icon (MODEST_HEADER_ICON_NORM_PRIORITY);
+ return normal_pixbuf;
+ }
}
-
return NULL;
}
rendobj = G_OBJECT(renderer);
header = g_markup_printf_escaped ("%s\n<small>%s</small>",
- subject ? subject : _("mail_va_no_subject"),
+ (subject && strlen(subject)) ? subject : _("mail_va_no_subject"),
modest_text_utils_get_display_address(address));
g_free (address);
g_free (subject);