aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-event.c')
-rw-r--r--e-util/e-event.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/e-util/e-event.c b/e-util/e-event.c
index 6d0ece99bf..5e4a2b6c09 100644
--- a/e-util/e-event.c
+++ b/e-util/e-event.c
@@ -451,14 +451,13 @@ emph_construct (EPluginHook *eph, EPlugin *ep, xmlNodePtr root)
EEventHookClass *class;
GSList *items = NULL;
- g_return_val_if_fail (((EEventHookClass *)G_OBJECT_GET_CLASS (eph))->event != NULL, -1);
-
d(printf("loading event hook\n"));
if (((EPluginHookClass *)e_event_hook_parent_class)->construct (eph, ep, root) == -1)
return -1;
- class = (EEventHookClass *)G_OBJECT_GET_CLASS (eph);
+ class = E_EVENT_HOOK_GET_CLASS (eph);
+ g_return_val_if_fail (class->event != NULL, -1);
node = root->children;
while (node) {