[empathy: 2/10] keyring: add is_available function



commit 1cbcfd3eda00fa93d081ef37c609103d84663941
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Fri Jan 28 16:28:58 2011 +0000

    keyring: add is_available function
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 libempathy/empathy-keyring.c |    6 ++++++
 libempathy/empathy-keyring.h |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-keyring.c b/libempathy/empathy-keyring.c
index 10226ac..7205a83 100644
--- a/libempathy/empathy-keyring.c
+++ b/libempathy/empathy-keyring.c
@@ -33,6 +33,12 @@ static GnomeKeyringPasswordSchema account_keyring_schema =
       { "param-name", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING },
       { NULL } } };
 
+gboolean
+empathy_keyring_is_available (void)
+{
+  return gnome_keyring_is_available ();
+}
+
 /* get */
 
 static void
diff --git a/libempathy/empathy-keyring.h b/libempathy/empathy-keyring.h
index e421167..76cb4fb 100644
--- a/libempathy/empathy-keyring.h
+++ b/libempathy/empathy-keyring.h
@@ -25,6 +25,8 @@
 
 G_BEGIN_DECLS
 
+gboolean empathy_keyring_is_available (void);
+
 void empathy_keyring_get_account_password_async (TpAccount *account,
     GAsyncReadyCallback callback, gpointer user_data);
 



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