summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-11-27 13:51:09 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2014-02-16 23:52:32 +0000
commit9e0bc6144ed28686055baabccf53c4d9295ef852 (patch)
tree82ca696aeb2e283e5456c948352bffc1f2bc516c
parent3513c3779a96a858642731e0b23bd9c106a90e60 (diff)
bluez: Set the alias and trust level when first adding a persona store
-rw-r--r--backends/bluez/bluez-backend.vala4
-rw-r--r--backends/bluez/bluez-persona-store.vala2
2 files changed, 6 insertions, 0 deletions
diff --git a/backends/bluez/bluez-backend.vala b/backends/bluez/bluez-backend.vala
index e0dd38a8..72f7243f 100644
--- a/backends/bluez/bluez-backend.vala
+++ b/backends/bluez/bluez-backend.vala
@@ -376,6 +376,10 @@ public class Folks.Backends.BlueZ.Backend : Folks.Backend
PersonaStore store =
new BlueZ.PersonaStore (device, path, this._obex_client);
+ /* Set the initial properties. */
+ store.set_is_trusted (device.trusted);
+ store.set_alias (device.alias);
+
this._watched_devices[path] = store;
this._persona_stores.set (store.id, store);
diff --git a/backends/bluez/bluez-persona-store.vala b/backends/bluez/bluez-persona-store.vala
index cad039a4..73262187 100644
--- a/backends/bluez/bluez-persona-store.vala
+++ b/backends/bluez/bluez-persona-store.vala
@@ -198,6 +198,8 @@ public class Folks.Backends.BlueZ.PersonaStore : Folks.PersonaStore
*/
public new string display_name
{
+ /* FIXME: Folks.display_name should be abstract, and this should be
+ * override. */
get { return this._display_name; }
construct { this._display_name = value; }
}