aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-event-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-07-15 22:00:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-07-15 22:00:38 +0800
commita94c077818ed96fb9547f0cc9afd4d1f33c2bcde (patch)
tree4f1dd1584fbd1dd3e9a8ec33ce17d6ab731bbf90 /libempathy-gtk/empathy-event-manager.c
parent9cccaa8e1dc6cf7d8858f3d7e7b83b2596421f91 (diff)
downloadgsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.tar
gsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.tar.gz
gsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.tar.bz2
gsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.tar.lz
gsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.tar.xz
gsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.tar.zst
gsoc2013-empathy-a94c077818ed96fb9547f0cc9afd4d1f33c2bcde.zip
Add empathy_event_manager_get_events
svn path=/trunk/; revision=1245
Diffstat (limited to 'libempathy-gtk/empathy-event-manager.c')
-rw-r--r--libempathy-gtk/empathy-event-manager.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-event-manager.c b/libempathy-gtk/empathy-event-manager.c
index 232d4dfe6..0dcabda94 100644
--- a/libempathy-gtk/empathy-event-manager.c
+++ b/libempathy-gtk/empathy-event-manager.c
@@ -420,11 +420,23 @@ empathy_event_manager_new (void)
return manager;
}
+GSList *
+empathy_event_manager_get_events (EmpathyEventManager *manager)
+{
+ EmpathyEventManagerPriv *priv = GET_PRIV (manager);
+
+ g_return_val_if_fail (EMPATHY_IS_EVENT_MANAGER (manager), NULL);
+
+ return priv->events;
+}
+
EmpathyEvent *
empathy_event_manager_get_top_event (EmpathyEventManager *manager)
{
EmpathyEventManagerPriv *priv = GET_PRIV (manager);
+ g_return_val_if_fail (EMPATHY_IS_EVENT_MANAGER (manager), NULL);
+
return priv->events ? priv->events->data : NULL;
}
@@ -433,6 +445,8 @@ empathy_event_activate (EmpathyEvent *event_public)
{
EventPriv *event = (EventPriv*) event_public;
+ g_return_if_fail (event_public != NULL);
+
if (event->func) {
event->func (event);
} else {