[gnome-online-accounts/gnome-3-18] daemon: Set GoaAccount:is-temporary
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-18] daemon: Set GoaAccount:is-temporary
- Date: Fri, 6 May 2016 10:28:31 +0000 (UTC)
commit 65b030ca26c3d2b2253632ac07b51f19c3b75bb3
Author: Debarshi Ray <debarshir gnome org>
Date: Wed May 4 18:04:30 2016 +0200
daemon: Set GoaAccount:is-temporary
We should identify temporary accounts as such by setting the
org.gnome.OnlineAccounts.Account:IsTemporary D-Bus property.
https://bugzilla.gnome.org/show_bug.cgi?id=765994
src/daemon/goadaemon.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 78f4ba6..6760c50 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -486,6 +486,7 @@ update_account_object (GoaDaemon *self,
GoaAccount *account;
GoaProvider *provider;
gboolean is_locked;
+ gboolean is_temporary;
gboolean ret;
gchar *identity;
gchar *presentation_identity;
@@ -516,6 +517,7 @@ update_account_object (GoaDaemon *self,
identity = g_key_file_get_string (key_file, group, "Identity", NULL);
presentation_identity = g_key_file_get_string (key_file, group, "PresentationIdentity", NULL);
is_locked = g_key_file_get_boolean (key_file, group, "IsLocked", NULL);
+ is_temporary = g_key_file_get_boolean (key_file, group, "IsTemporary", NULL);
if (just_added)
{
account = goa_account_skeleton_new ();
@@ -538,6 +540,7 @@ update_account_object (GoaDaemon *self,
goa_account_set_identity (account, identity);
goa_account_set_presentation_identity (account, presentation_identity);
goa_account_set_is_locked (account, is_locked);
+ goa_account_set_is_temporary (account, is_temporary);
error = NULL;
if (!goa_provider_build_object (provider, object, key_file, group, self->connection, just_added, &error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]