diff options
author | Lucian Langa <lucilanga@gnome.org> | 2009-05-29 04:39:37 +0800 |
---|---|---|
committer | Lucian Langa <lucilanga@gnome.org> | 2009-05-29 04:39:37 +0800 |
commit | b7d79d3a852746058de93dd0af9b2c13969d55c0 (patch) | |
tree | a783b1988666039bb3e4ee70eff7c32e11e3cad8 /mail/em-folder-tree-model.c | |
parent | 2a62fc778c898effc4d76f1380691ac574092bdb (diff) | |
download | gsoc2013-evolution-b7d79d3a852746058de93dd0af9b2c13969d55c0.tar.gz gsoc2013-evolution-b7d79d3a852746058de93dd0af9b2c13969d55c0.tar.zst gsoc2013-evolution-b7d79d3a852746058de93dd0af9b2c13969d55c0.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 2fedce05b3..a12b453e53 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -55,6 +55,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> @@ -453,6 +454,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)) @@ -540,6 +542,9 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *ite COL_BOOL_LOAD_SUBDIRS, load, -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, -1); |