[geocode-glib] lib: Tag search objects as such



commit 972b89550fec69fbb3043908858862f5aed4e1b5
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 24 12:10:00 2012 +0200

    lib: Tag search objects as such

 geocode-glib/geocode-glib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-glib.c b/geocode-glib/geocode-glib.c
index a34d15c..38a8885 100644
--- a/geocode-glib/geocode-glib.c
+++ b/geocode-glib/geocode-glib.c
@@ -839,6 +839,7 @@ get_search_query_for_params (GeocodeObject *object)
 	g_free (search_term);
 
 	ret = g_file_new_for_uri (uri);
+	g_object_set_data (G_OBJECT (ret), IS_SEARCH, GINT_TO_POINTER (TRUE));
 	g_free (uri);
 
 	return ret;
@@ -894,6 +895,7 @@ geocode_object_search_async (GeocodeObject       *object,
 		GFile *cache;
 
 		cache = g_file_new_for_path (cache_path);
+		g_object_set_data (G_OBJECT (cache), IS_SEARCH, GINT_TO_POINTER (TRUE));
 		g_object_set_data_full (G_OBJECT (cache), "query", query, (GDestroyNotify) g_object_unref);
 		g_object_set_data (G_OBJECT (cache), "cancellable", cancellable);
 		g_file_load_contents_async (cache,



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