diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-12 20:14:16 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-13 19:37:18 +0800 |
commit | 73729806f2214306477756690ebbf8469d4ffe17 (patch) | |
tree | 790c766f675e56b3bf3bf8acbb2f31e8862fc01a /libempathy-gtk | |
parent | f349f9df875a373dd4070a1e7f5d5a81cc02b230 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | libempathy-gtk/empathy-notify-manager.c | 9 | ||||
-rw-r--r-- | 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 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; +} diff --git a/libempathy-gtk/empathy-notify-manager.h b/libempathy-gtk/empathy-notify-manager.h index dff4238df..74d2fcfa4 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__ */ |