[empathy] add empathy_event_remove()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] add empathy_event_remove()
- Date: Tue, 9 Nov 2010 08:04:51 +0000 (UTC)
commit 2d91d86e1638f3c9a9be8be63ff974a8fc28d9ce
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Oct 28 14:57:38 2010 +0200
add empathy_event_remove()
src/empathy-event-manager.c | 10 ++++++++--
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 882b286..1145d1b 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 39aa0c9..cc81d2d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]