aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-notify-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-12 20:14:16 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-13 19:37:18 +0800
commit73729806f2214306477756690ebbf8469d4ffe17 (patch)
tree790c766f675e56b3bf3bf8acbb2f31e8862fc01a /libempathy-gtk/empathy-notify-manager.c
parentf349f9df875a373dd4070a1e7f5d5a81cc02b230 (diff)
downloadgsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.tar
gsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.tar.gz
gsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.tar.bz2
gsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.tar.lz
gsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.tar.xz
gsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.tar.zst
gsoc2013-empathy-73729806f2214306477756690ebbf8469d4ffe17.zip
add empathy_notify_manager_has_capability
Diffstat (limited to 'libempathy-gtk/empathy-notify-manager.c')
-rw-r--r--libempathy-gtk/empathy-notify-manager.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-notify-manager.c b/libempathy-gtk/empathy-notify-manager.c
index ae1894ad9..0bb6b8561 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;
+}