diff options
Diffstat (limited to 'modules/mail/e-mail-event-hook.c')
-rw-r--r-- | modules/mail/e-mail-event-hook.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/mail/e-mail-event-hook.c b/modules/mail/e-mail-event-hook.c index a6be6d294f..becc80624e 100644 --- a/modules/mail/e-mail-event-hook.c +++ b/modules/mail/e-mail-event-hook.c @@ -60,11 +60,15 @@ static const EEventHookTargetMap targets[] = { }; static void -mail_event_hook_class_init (EPluginHookClass *class) +mail_event_hook_class_init (EEventHookClass *class) { + EPluginHookClass *plugin_hook_class; gint ii; - class->id = "org.gnome.evolution.mail.events:1.0"; + plugin_hook_class = E_PLUGIN_HOOK_CLASS (class); + plugin_hook_class->id = "org.gnome.evolution.mail.events:1.0"; + + class->event = (EEvent *) em_event_peek (); for (ii = 0; targets[ii].type != NULL; ii++) e_event_hook_class_add_target_map ( |