aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-notify-manager.c9
-rw-r--r--libempathy-gtk/empathy-notify-manager.h3
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__ */