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



commit 0093061b808152058b10a5d64a76c8fee08dc7cc
Author: Rob Bradford <rob linux intel com>
Date:   Fri Apr 29 16:30:10 2011 +0100

    item: Refactor SwCacheable interface setup to avoid compiler warning

 libsocialweb/sw-item.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libsocialweb/sw-item.c b/libsocialweb/sw-item.c
index 3afd715..9fd74a8 100644
--- a/libsocialweb/sw-item.c
+++ b/libsocialweb/sw-item.c
@@ -472,6 +472,12 @@ sw_item_get_id (SwCacheable *cacheable)
   return sw_item_get (self, "id");
 }
 
+static gboolean
+sw_item_is_ready (SwCacheable *cacheable)
+{
+  return sw_item_get_ready (SW_ITEM (cacheable));
+}
+
 static void
 sw_item_save_into_cache (SwCacheable *cacheable, GKeyFile *keys,
                          const gchar *group)
@@ -509,6 +515,6 @@ sw_item_cacheable_init (SwCacheableInterface *iface,
                            gpointer user_data)
 {
   iface->get_id = sw_item_get_id;
-  iface->is_ready = sw_item_get_ready;
+  iface->is_ready = sw_item_is_ready;
   iface->save_into_cache = sw_item_save_into_cache;
 }



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