[folks] bluez: Set the alias and trust level when first adding a persona store
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] bluez: Set the alias and trust level when first adding a persona store
- Date: Sun, 16 Feb 2014 23:55:03 +0000 (UTC)
commit 9e0bc6144ed28686055baabccf53c4d9295ef852
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Nov 27 13:51:09 2013 +0000
bluez: Set the alias and trust level when first adding a persona store
backends/bluez/bluez-backend.vala | 4 ++++
backends/bluez/bluez-persona-store.vala | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/backends/bluez/bluez-backend.vala b/backends/bluez/bluez-backend.vala
index e0dd38a..72f7243 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 cad039a..7326218 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; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]