aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-10-21 17:31:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-10-21 17:31:22 +0800
commit86773ecbedd3e7a6e04100a3e942ee36b14ec0a1 (patch)
tree07cf084a70e49a361bdafac4f0a808a155b6a6c9 /mail/em-composer-utils.c
parente08821891234e9c43e5e0171d2743463f3aaf2cf (diff)
downloadgsoc2013-evolution-86773ecbedd3e7a6e04100a3e942ee36b14ec0a1.tar.gz
gsoc2013-evolution-86773ecbedd3e7a6e04100a3e942ee36b14ec0a1.tar.zst
gsoc2013-evolution-86773ecbedd3e7a6e04100a3e942ee36b14ec0a1.zip
emit a 'message.replying' event with a message target.
2004-10-21 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (em_utils_reply_to_message): emit a 'message.replying' event with a message target. 2004-10-21 Nat <nat@novell.com> * em-event.c (em_event_target_new_message): new target type for message-related events. 2004-10-21 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_format_popup_event): put 'evolution' back in the popup hook names. svn path=/trunk/; revision=27673
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 3b723643bb..217aebdc57 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -45,6 +45,7 @@
#include "composer/e-msg-composer.h"
#include "em-format-html.h"
#include "em-format-quote.h"
+#include "em-event.h"
#include "e-util/e-account-list.h"
@@ -1745,6 +1746,8 @@ em_utils_reply_to_message(CamelFolder *folder, const char *uid, CamelMimeMessage
EAccount *account;
const char *postto = NULL;
guint32 flags;
+ EMEvent *eme;
+ EMEventTargetMessage *target;
if (folder && uid && message == NULL) {
struct _reply_data *rd = g_malloc0(sizeof(*rd));
@@ -1758,6 +1761,11 @@ em_utils_reply_to_message(CamelFolder *folder, const char *uid, CamelMimeMessage
}
g_return_if_fail(message != NULL);
+
+ /* EVENT: message.replying definition */
+ eme = em_event_peek();
+ target = em_event_target_new_message(eme, folder, message, uid, 0);
+ e_event_emit((EEvent *)eme, "message.replying", (EEventTarget *)target);
account = guess_account (message, folder);
flags = CAMEL_MESSAGE_ANSWERED | CAMEL_MESSAGE_SEEN;