diff options
author | Radek Doulik <rodo@ximian.com> | 2003-12-01 20:14:20 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2003-12-01 20:14:20 +0800 |
commit | a593233693b07d654463073bfd4f83ff57605fbe (patch) | |
tree | ffb5c9e74c7e29a4d5690ea612150dc91c301da0 /mail | |
parent | 9563ccf6be0cdc345a70c1facbc6731a75904554 (diff) | |
download | gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.tar gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.tar.gz gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.tar.bz2 gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.tar.lz gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.tar.xz gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.tar.zst gsoc2013-evolution-a593233693b07d654463073bfd4f83ff57605fbe.zip |
use CAMEL_VTRASH_NAME, CAMEL_VJUNK_NAME
2003-12-01 Radek Doulik <rodo@ximian.com>
* em-folder-tree.c (render_pixbuf): use CAMEL_VTRASH_NAME,
CAMEL_VJUNK_NAME
2003-11-28 Radek Doulik <rodo@ximian.com>
* em-folder-tree.c (render_pixbuf): added junk icon to folder
icons
svn path=/trunk/; revision=23516
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 10 | ||||
-rw-r--r-- | mail/em-folder-tree.c | 19 |
2 files changed, 22 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index ab07283b92..1ee08023ec 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,13 @@ +2003-12-01 Radek Doulik <rodo@ximian.com> + + * em-folder-tree.c (render_pixbuf): use CAMEL_VTRASH_NAME, + CAMEL_VJUNK_NAME + +2003-11-28 Radek Doulik <rodo@ximian.com> + + * em-folder-tree.c (render_pixbuf): added junk icon to folder + icons + 2003-12-01 Not Zed <NotZed@Ximian.com> * em-folder-browser.c (emfb_edit_cut, emfb_edit_copy) diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index dbcbb50eaa..473ffa83ed 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -233,10 +233,12 @@ enum { FOLDER_ICON_NORMAL, FOLDER_ICON_INBOX, FOLDER_ICON_OUTBOX, - FOLDER_ICON_TRASH + FOLDER_ICON_TRASH, + FOLDER_ICON_JUNK, + FOLDER_ICON_LAST }; -static GdkPixbuf *folder_icons[4]; +static GdkPixbuf *folder_icons[FOLDER_ICON_LAST]; static void render_pixbuf (GtkTreeViewColumn *column, GtkCellRenderer *renderer, @@ -248,10 +250,11 @@ render_pixbuf (GtkTreeViewColumn *column, GtkCellRenderer *renderer, char *path; if (!initialised) { - folder_icons[0] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/folder-mini.png", NULL); - folder_icons[1] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/inbox-mini.png", NULL); - folder_icons[2] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/outbox-mini.png", NULL); - folder_icons[3] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/evolution-trash-mini.png", NULL); + folder_icons[FOLDER_ICON_NORMAL] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/folder-mini.png", NULL); + folder_icons[FOLDER_ICON_INBOX] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/inbox-mini.png", NULL); + folder_icons[FOLDER_ICON_OUTBOX] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/outbox-mini.png", NULL); + folder_icons[FOLDER_ICON_TRASH] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/evolution-trash-mini.png", NULL); + folder_icons[FOLDER_ICON_JUNK] = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/evolution-junk-mini.png", NULL); initialised = TRUE; } @@ -263,8 +266,10 @@ render_pixbuf (GtkTreeViewColumn *column, GtkCellRenderer *renderer, pixbuf = folder_icons[FOLDER_ICON_INBOX]; else if (!strcasecmp (path, "/Outbox")) pixbuf = folder_icons[FOLDER_ICON_OUTBOX]; - else if (!strcasecmp (path, "/Trash")) + else if if (*path == '/' && !strcasecmp (path + 1, CAMEL_VTRASH_NAME)) pixbuf = folder_icons[FOLDER_ICON_TRASH]; + else if (*path == '/' && !strcasecmp (path + 1, CAMEL_VJUNK_NAME)) + pixbuf = folder_icons[FOLDER_ICON_JUNK]; else pixbuf = folder_icons[FOLDER_ICON_NORMAL]; } |