X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-header-view-render.c;h=80158e0a07aec4a537abc4457739eeaab9ed8ea8;hp=b7ff42f0b45cb1fa75c36210baace301ea34d1ef;hb=502114f20e2cb87fd966a222b8f91a56c758d85b;hpb=57ef4a349b509830747019c4af405f8a91892412 diff --git a/src/widgets/modest-header-view-render.c b/src/widgets/modest-header-view-render.c index b7ff42f..80158e0 100644 --- a/src/widgets/modest-header-view-render.c +++ b/src/widgets/modest-header-view-render.c @@ -74,6 +74,8 @@ get_pixbuf_for_compact_flag (TnyHeaderFlags flags) 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; @@ -105,9 +107,12 @@ get_pixbuf_for_compact_flag (TnyHeaderFlags flags) 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; }