diff options
author | Lucian Langa <lucilanga@gnome.org> | 2009-05-29 04:39:37 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-02 22:39:19 +0800 |
commit | a868ce4a81c64db0a6f9feb88f18479f11a900a5 (patch) | |
tree | 4c329c3f62f5e13aa1cc5f623c8388215318f443 /mail/em-folder-tree-model.c | |
parent | f5ed12396d34ba7e07219d5965f18563e5339846 (diff) | |
download | gsoc2013-evolution-a868ce4a81c64db0a6f9feb88f18479f11a900a5.tar.gz gsoc2013-evolution-a868ce4a81c64db0a6f9feb88f18479f11a900a5.tar.zst gsoc2013-evolution-a868ce4a81c64db0a6f9feb88f18479f11a900a5.zip |
Bug 584154 – custom icon folder hook does not work
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index adc77fdbfe..ea2ddebd93 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -53,6 +53,7 @@ #include "em-utils.h" #include "em-folder-utils.h" +#include "em-event.h" #include <camel/camel-folder.h> #include <camel/camel-vee-store.h> @@ -574,6 +575,7 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *ite const gchar *name; const gchar *icon_name; guint32 flags; + EMEventTargetCustomIcon *target; /* make sure we don't already know about it? */ if (g_hash_table_lookup (si->full_hash, fi->full_name)) @@ -672,6 +674,9 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *ite COL_UINT_UNREAD_LAST_SEL, 0, -1); + target = em_event_target_new_custom_icon (em_event_peek(), tree_store, iter, fi->full_name, EM_EVENT_CUSTOM_ICON); + e_event_emit ((EEvent *)em_event_peek (), "folder.customicon", (EEventTarget *) target); + if (unread != ~0) gtk_tree_store_set ( tree_store, iter, COL_UINT_UNREAD, unread, |