From a385a3e6dd6dd059f4b7130b513a017dea2ff327 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 6 Oct 2010 23:00:28 -0600 Subject: Setting up a basic address callback --- src/datetime-service.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/datetime-service.c b/src/datetime-service.c index b32faa1..7ab6b63 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -240,11 +240,23 @@ setup_timer (void) return; } +/* Callback from getting the address */ +static void +geo_address_cb (GeoclueAddress * address, int timestamp, GHashTable * addy_data, GeoclueAccuracy * accuracy, GError * error, gpointer user_data) +{ + g_debug("Geoclue timezone is: %s", (gchar *)g_hash_table_lookup(addy_data, "timezone")); + return; +} + /* Callback from creating the address */ static void geo_create_address (GeoclueMasterClient * master, GeoclueAddress * address, GError * error, gpointer user_data) { + g_debug("Created Geoclue Address"); geo_address = address; + + geoclue_address_get_address_async(geo_address, geo_address_cb, NULL); + return; } -- cgit v1.2.3