[empathy] add empathy_notify_manager_has_capability



commit 73729806f2214306477756690ebbf8469d4ffe17
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 12 12:14:16 2009 +0000

    add empathy_notify_manager_has_capability

 libempathy-gtk/empathy-notify-manager.c |    9 +++++++++
 libempathy-gtk/empathy-notify-manager.h |    3 +++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-notify-manager.c b/libempathy-gtk/empathy-notify-manager.c
index ae1894a..0bb6b85 100644
--- a/libempathy-gtk/empathy-notify-manager.c
+++ b/libempathy-gtk/empathy-notify-manager.c
@@ -132,3 +132,12 @@ empathy_notify_manager_dup_singleton (void)
   return EMPATHY_NOTIFY_MANAGER (g_object_new (EMPATHY_TYPE_NOTIFY_MANAGER,
         NULL));
 }
+
+gboolean
+empathy_notify_manager_has_capability (EmpathyNotifyManager *self,
+    const gchar *capa)
+{
+  EmpathyNotifyManagerPriv *priv = GET_PRIV (self);
+
+  return g_hash_table_lookup (priv->capabilities, capa) != NULL;
+}
diff --git a/libempathy-gtk/empathy-notify-manager.h b/libempathy-gtk/empathy-notify-manager.h
index dff4238..74d2fcf 100644
--- a/libempathy-gtk/empathy-notify-manager.h
+++ b/libempathy-gtk/empathy-notify-manager.h
@@ -51,6 +51,9 @@ GType empathy_notify_manager_get_type (void) G_GNUC_CONST;
 /* Get the notify_manager singleton */
 EmpathyNotifyManager * empathy_notify_manager_dup_singleton (void);
 
+gboolean empathy_notify_manager_has_capability (EmpathyNotifyManager *self,
+    const gchar *capa);
+
 G_END_DECLS
 
 #endif /* __EMPATHY_NOTIFY_MANAGER_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]