[gnome-clocks] geocoding: Provide desktop id to geoclue
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] geocoding: Provide desktop id to geoclue
- Date: Tue, 21 Jan 2014 12:43:02 +0000 (UTC)
commit 8e7ef761bdbbbde23f527b07ec1f409ba54d955f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jan 20 18:05:51 2014 +0000
geocoding: Provide desktop id to geoclue
https://bugzilla.gnome.org/show_bug.cgi?id=722375
src/geocoding.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/geocoding.vala b/src/geocoding.vala
index e2d5518..a6d6a96 100644
--- a/src/geocoding.vala
+++ b/src/geocoding.vala
@@ -27,6 +27,7 @@ private interface Manager : Object {
[DBus (name = "org.freedesktop.GeoClue2.Client")]
private interface Client : Object {
public abstract string location { owned get; }
+ public abstract string desktop_id { owned get; set; }
public abstract uint distance_threshold { get; set; }
public signal void location_updated (string old_path, string new_path);
@@ -48,6 +49,8 @@ public interface Location : Object {
public class Info : Object {
public Geo.Location? geo_location { get; private set; default = null; }
+ private const string DESKTOP_ID = "gnome-clocks";
+
private GWeather.Location? found_location;
private string? country_code;
private Geo.Manager manager;
@@ -95,6 +98,8 @@ public class Info : Object {
return;
}
+ client.desktop_id = DESKTOP_ID;
+
client.location_updated.connect ((old_path, new_path) => {
on_location_updated.begin (old_path, new_path, (obj, res) => {
on_location_updated.end (res);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]