diff options
-rw-r--r-- | src/empathy-event-manager.c | 10 | ||||
-rw-r--r-- | src/empathy-event-manager.h | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 882b28673..1145d1b65 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -150,8 +150,6 @@ event_manager_approval_free (EventManagerApproval *approval) g_slice_free (EventManagerApproval, approval); } -static void event_remove (EventPriv *event); - static void event_free (EventPriv *event) { @@ -182,6 +180,14 @@ event_remove (EventPriv *event) event_free (event); } +void +empathy_event_remove (EmpathyEvent *event_public) +{ + EventPriv *event = (EventPriv *) event_public; + + event_remove (event); +} + static gboolean autoremove_event_timeout_cb (EventPriv *event) { diff --git a/src/empathy-event-manager.h b/src/empathy-event-manager.h index 39aa0c979..cc81d2ddb 100644 --- a/src/empathy-event-manager.h +++ b/src/empathy-event-manager.h @@ -74,6 +74,7 @@ void empathy_event_activate (EmpathyEvent *e void empathy_event_inhibit_updates (EmpathyEvent *event); void empathy_event_approve (EmpathyEvent *event); void empathy_event_decline (EmpathyEvent *event); +void empathy_event_remove (EmpathyEvent *event); G_END_DECLS |