aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-22 09:12:20 -0400
committerTed Gould <ted@gould.cx>2010-10-22 09:12:20 -0400
commitcc5d5780cb01c1ceebc1da10f1329b16eab27749 (patch)
treedaf211ad5a3d1fca7aec22f88a6e96f8dcd2c22a
parentd2886daf97d85423d458830ec57c4024712b0b32 (diff)
downloadayatana-indicator-datetime-cc5d5780cb01c1ceebc1da10f1329b16eab27749.tar.gz
ayatana-indicator-datetime-cc5d5780cb01c1ceebc1da10f1329b16eab27749.tar.bz2
ayatana-indicator-datetime-cc5d5780cb01c1ceebc1da10f1329b16eab27749.zip
Setting up callbacks for the signals off of the clients
-rw-r--r--src/datetime-service.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 4eee211..7148c69 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -410,6 +410,23 @@ geo_req_set (GeoclueMasterClient * master, GError * error, gpointer user_data)
return;
}
+/* Client is killing itself rather oddly */
+static void
+geo_client_invalid (GeoclueMasterClient * client, gpointer user_data)
+{
+
+ return;
+}
+
+/* Address provider changed, we need to get that one */
+static void
+geo_address_change (GeoclueMasterClient * client, gchar * a, gchar * b, gchar * c, gchar * d, gpointer user_data)
+{
+
+
+ return;
+}
+
/* Callback from creating the client */
static void
geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * path, GError * error, gpointer user_data)
@@ -428,6 +445,9 @@ geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar *
geoclue_master_client_create_address_async(geo_master, geo_create_address, NULL);
+ g_signal_connect(G_OBJECT(client), "invalidated", G_CALLBACK(geo_client_invalid), NULL);
+ g_signal_connect(G_OBJECT(client), "address-provider-changed", G_CALLBACK(geo_address_change), NULL);
+
return;
}