diff options
author | Davyd Madeley <davyd@madeley.id.au> | 2009-04-25 09:39:55 +0800 |
---|---|---|
committer | Davyd Madeley <davyd@madeley.id.au> | 2009-07-15 18:12:15 +0800 |
commit | 24f3f86b2bd9c42a9ea9f498980f0d255e35bb32 (patch) | |
tree | e21763ed3fbe599ab24adf71c6eb46943142d203 /libempathy/empathy-contact-manager.c | |
parent | 4afeb994e1fb9bdef315d0eaa24c3821536e30c1 (diff) | |
download | gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.tar gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.tar.gz gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.tar.bz2 gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.tar.lz gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.tar.xz gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.tar.zst gsoc2013-empathy-24f3f86b2bd9c42a9ea9f498980f0d255e35bb32.zip |
Add empathy_contact_manager_initialized()
Diffstat (limited to 'libempathy/empathy-contact-manager.c')
-rw-r--r-- | libempathy/empathy-contact-manager.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c index 5ce463c4c..302fad3c5 100644 --- a/libempathy/empathy-contact-manager.c +++ b/libempathy/empathy-contact-manager.c @@ -204,6 +204,23 @@ contact_manager_constructor (GType type, return retval; } +/** + * empathy_contact_manager_initialized: + * + * Reports whether or not the singleton has already been created. + * + * There can be instances where you want to access the #EmpathyContactManager + * only if it has been set up for this process. + * + * Returns: %TRUE if the #EmpathyContactManager singleton has previously + * been initialized. + */ +gboolean +empathy_contact_manager_initialized (void) +{ + return (manager_singleton != NULL); +} + static void empathy_contact_manager_class_init (EmpathyContactManagerClass *klass) { |