aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-06 22:55:03 -0600
committerTed Gould <ted@gould.cx>2010-10-06 22:55:03 -0600
commit9e8f668bb0d8187da6d9cae61a702b412170ead2 (patch)
tree60e069fa1bf8cc65e111ce5594068edc8bf0c035 /src
parentbbd7c80b46c485e8e40544a5038712cd5b74e125 (diff)
downloadayatana-indicator-datetime-9e8f668bb0d8187da6d9cae61a702b412170ead2.tar.gz
ayatana-indicator-datetime-9e8f668bb0d8187da6d9cae61a702b412170ead2.tar.bz2
ayatana-indicator-datetime-9e8f668bb0d8187da6d9cae61a702b412170ead2.zip
Create the address link in a callback as well
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 3c922c9..b32faa1 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -240,11 +240,22 @@ setup_timer (void)
return;
}
+/* Callback from creating the address */
+static void
+geo_create_address (GeoclueMasterClient * master, GeoclueAddress * address, GError * error, gpointer user_data)
+{
+ geo_address = address;
+ return;
+}
+
/* Callback from creating the client */
static void
geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * path, GError * error, gpointer user_data)
{
+ g_debug("Created Geoclue client at: %s", path);
+ geo_master = client;
+ geoclue_master_client_create_address_async(geo_master, geo_create_address, NULL);
return;
}