diff options
author | Not Zed <NotZed@Ximian.com> | 2004-10-22 17:16:11 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-10-22 17:16:11 +0800 |
commit | a4bb7987d23ba7748d44f079f1d45dd7cb4f37b1 (patch) | |
tree | af274ad4a581e47cb2b7d15bac358eea48701cba /mail/em-folder-view.c | |
parent | 8c23e382711a447dd12117b14d715bccd0012797 (diff) | |
download | gsoc2013-evolution-a4bb7987d23ba7748d44f079f1d45dd7cb4f37b1.tar.gz gsoc2013-evolution-a4bb7987d23ba7748d44f079f1d45dd7cb4f37b1.tar.zst gsoc2013-evolution-a4bb7987d23ba7748d44f079f1d45dd7cb4f37b1.zip |
duh, they're camel not gobjects.
2004-10-22 Not Zed <NotZed@Ximian.com>
* em-event.c (eme_target_free): duh, they're camel not gobjects.
* em-folder-view.c (emfv_list_done_message_selected): added a
message.reading event.
svn path=/trunk/; revision=27694
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 61d5a4c1ab..282a9a24af 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -78,6 +78,7 @@ #include "em-composer-utils.h" #include "em-marshal.h" #include "em-menu.h" +#include "em-event.h" #include <gtkhtml/gtkhtml.h> #include <gtkhtml/htmlobject.h> @@ -1986,6 +1987,8 @@ static void emfv_list_done_message_selected(CamelFolder *folder, const char *uid, CamelMimeMessage *msg, void *data) { EMFolderView *emfv = data; + EMEvent *eme; + EMEventTargetMessage *target; if (emfv->preview == NULL) { emfv->priv->nomarkseen = FALSE; @@ -1993,7 +1996,19 @@ emfv_list_done_message_selected(CamelFolder *folder, const char *uid, CamelMimeM emfv_enable_menus(emfv); return; } - + + /** + * @Event: message.reading + * @Title: Viewing a message + * @Target: EMEventTargetMessage + * + * message.reading is emitted whenever a user views a message. + */ + /* TODO: do we emit a message.reading with no message when we're looking at nothing or don't care? */ + eme = em_event_peek(); + target = em_event_target_new_message(eme, folder, msg, uid, 0); + e_event_emit((EEvent *)eme, "message.reading", (EEventTarget *)target); + em_format_format((EMFormat *)emfv->preview, folder, uid, msg); if (emfv->priv->seen_id) |