[libsocialweb] contact: Refactor SwCacheable interface setup to avoid compiler warning



commit 38a8ccfa770d09a0f1644ad3ef0d6276eae920a4
Author: Rob Bradford <rob linux intel com>
Date:   Fri Apr 29 16:19:59 2011 +0100

    contact: Refactor SwCacheable interface setup to avoid compiler warning

 libsocialweb/sw-contact.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libsocialweb/sw-contact.c b/libsocialweb/sw-contact.c
index 4e1c21f..8a4e53d 100644
--- a/libsocialweb/sw-contact.c
+++ b/libsocialweb/sw-contact.c
@@ -502,6 +502,12 @@ sw_contact_get_id (SwCacheable *cacheable)
   return sw_contact_get (self, "id");
 }
 
+static gboolean
+sw_contact_is_ready (SwCacheable *cacheable)
+{
+  return sw_contact_get_ready (SW_CONTACT (cacheable));
+}
+
 static void
 sw_contact_save_into_cache (SwCacheable *cacheable, GKeyFile *keys,
                             const gchar *group)
@@ -528,6 +534,6 @@ sw_contact_cacheable_init (SwCacheableInterface *iface,
                            gpointer user_data)
 {
   iface->get_id = sw_contact_get_id;
-  iface->is_ready = sw_contact_get_ready;
+  iface->is_ready = sw_contact_is_ready;
   iface->save_into_cache = sw_contact_save_into_cache;
 }



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