diff options
author | Ted Gould <ted@gould.cx> | 2010-10-06 23:00:28 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-10-06 23:00:28 -0600 |
commit | a385a3e6dd6dd059f4b7130b513a017dea2ff327 (patch) | |
tree | a2d146d96bb6d773e6ce9ef9f69ed5dcdd0d03d5 | |
parent | 9e8f668bb0d8187da6d9cae61a702b412170ead2 (diff) | |
download | ayatana-indicator-datetime-a385a3e6dd6dd059f4b7130b513a017dea2ff327.tar.gz ayatana-indicator-datetime-a385a3e6dd6dd059f4b7130b513a017dea2ff327.tar.bz2 ayatana-indicator-datetime-a385a3e6dd6dd059f4b7130b513a017dea2ff327.zip |
Setting up a basic address callback
-rw-r--r-- | src/datetime-service.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |