[geocode-glib] test: Use geocode_object_new_for_location()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] test: Use geocode_object_new_for_location()
- Date: Fri, 19 Oct 2012 17:15:02 +0000 (UTC)
commit 8f464535a8ca6b16cd6d5c9565f7a56b6f978a7f
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 16 12:30:09 2012 +0200
test: Use geocode_object_new_for_location()
geocode-glib/test-gcglib.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index 4f711ca..acf4795 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -126,8 +126,7 @@ test_pub (void)
GHashTable *ht;
gdouble longitude, latitude;
- object = geocode_object_new ();
- geocode_object_add (object, "location", "9, old palace road, guildford, surrey");
+ object = geocode_object_new_for_location ("9, old palace road, guildford, surrey");
ht = geocode_object_resolve (object, &error);
if (ht == NULL) {
g_warning ("Failed at geocoding: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]