aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-09-13 09:13:15 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-09-13 09:13:15 +0000
commit9b801d5b1903a5f7939bb9b0cb68d0058217f668 (patch)
tree922994cc41ec3e00b6f4d1b0133c2178e2a3f76a /src
parentaf662f794d118ff080b616c5315b3a1f831fb4a3 (diff)
distinguish icon for HTML mail and other mail with attachments on summaryview (#84).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3281 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/icons/Makefile.am4
-rw-r--r--src/icons/html.pngbin0 -> 770 bytes
-rw-r--r--src/stock_pixmap.c2
-rw-r--r--src/stock_pixmap.h1
-rw-r--r--src/summaryview.c9
5 files changed, 14 insertions, 2 deletions
diff --git a/src/icons/Makefile.am b/src/icons/Makefile.am
index c1ad743b..2c7cd17f 100644
--- a/src/icons/Makefile.am
+++ b/src/icons/Makefile.am
@@ -32,7 +32,8 @@ BUILT_SOURCES = \
folder-open.h \
folder-noselect.h \
folder-search.h \
- group.h
+ group.h \
+ html.h
EXTRA_DIST = \
stock_addressbook.png \
@@ -69,6 +70,7 @@ EXTRA_DIST = \
folder-noselect.png \
folder-search.png \
group.png \
+ html.png \
clip.xpm \
deleted.xpm \
forwarded.xpm \
diff --git a/src/icons/html.png b/src/icons/html.png
new file mode 100644
index 00000000..d95fcc09
--- /dev/null
+++ b/src/icons/html.png
Binary files differ
diff --git a/src/stock_pixmap.c b/src/stock_pixmap.c
index 0da2155b..09d1df84 100644
--- a/src/stock_pixmap.c
+++ b/src/stock_pixmap.c
@@ -80,6 +80,7 @@
#include "icons/folder-noselect.h"
#include "icons/folder-search.h"
#include "icons/group.h"
+#include "icons/html.h"
typedef struct _StockPixmapData StockPixmapData;
@@ -110,6 +111,7 @@ static StockPixmapData pixmaps[] =
{error_xpm , NULL, NULL},
{forwarded_xpm , NULL, NULL},
{NULL, NULL, NULL, NULL, group, sizeof(group), "group", 0},
+ {NULL, NULL, NULL, NULL, html, sizeof(html), "html", 0},
{interface_xpm , NULL, NULL},
{jpilot_xpm , NULL, NULL},
{ldap_xpm , NULL, NULL},
diff --git a/src/stock_pixmap.h b/src/stock_pixmap.h
index a7c6d392..7d019510 100644
--- a/src/stock_pixmap.h
+++ b/src/stock_pixmap.h
@@ -38,6 +38,7 @@ typedef enum
STOCK_PIXMAP_ERROR,
STOCK_PIXMAP_FORWARDED,
STOCK_PIXMAP_GROUP,
+ STOCK_PIXMAP_HTML,
STOCK_PIXMAP_INTERFACE,
STOCK_PIXMAP_JPILOT,
STOCK_PIXMAP_LDAP,
diff --git a/src/summaryview.c b/src/summaryview.c
index dc2fb50b..bac678f1 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -139,6 +139,7 @@ static GdkPixbuf *replied_pixbuf;
static GdkPixbuf *forwarded_pixbuf;
static GdkPixbuf *clip_pixbuf;
+static GdkPixbuf *html_pixbuf;
static void summary_clear_list_full (SummaryView *summaryview,
gboolean is_refresh);
@@ -624,6 +625,8 @@ void summary_init(SummaryView *summaryview)
&forwarded_pixbuf);
stock_pixbuf_gdk(summaryview->treeview, STOCK_PIXMAP_CLIP,
&clip_pixbuf);
+ stock_pixbuf_gdk(summaryview->treeview, STOCK_PIXMAP_HTML,
+ &html_pixbuf);
font_desc = pango_font_description_new();
size = pango_font_description_get_size
@@ -2473,8 +2476,12 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter,
else if (MSG_IS_FORWARDED(flags))
unread_pix = forwarded_pixbuf;
- if (MSG_IS_MIME(flags))
+ if (MSG_IS_MIME(flags)) {
mime_pix = clip_pixbuf;
+ }
+ if (MSG_IS_MIME_HTML(flags)) {
+ mime_pix = html_pixbuf;
+ }
if (prefs_common.bold_unread) {
if (MSG_IS_UNREAD(flags))