[gnome-control-center] user-accounts: Default LocalAccount property to TRUE
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Default LocalAccount property to TRUE
- Date: Mon, 17 Sep 2012 17:24:50 +0000 (UTC)
commit 0721469d566e1005415c974c8cfd29ad718497cd
Author: Stef Walter <stefw gnome org>
Date: Mon Sep 17 14:19:53 2012 +0200
user-accounts: Default LocalAccount property to TRUE
When loading properties from the AccountsService we may encounter
an implementation that does not yet have the LocalAccount property,
so set the LocalAccount property to TRUE by default to make things
work correctly in the above case.
https://bugzilla.gnome.org/show_bug.cgi?id=684207
panels/user-accounts/um-user.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user.c b/panels/user-accounts/um-user.c
index 3b84cae..933a5ab 100644
--- a/panels/user-accounts/um-user.c
+++ b/panels/user-accounts/um-user.c
@@ -107,7 +107,10 @@ user_properties_get (GDBusConnection *bus,
return NULL;
}
+ /* Add some defaults that may not be received from some AccountsService versions */
props = g_new0 (UserProperties, 1);
+ props->local_account = TRUE;
+
g_variant_get (result, "(a{sv})", &iter);
while (g_variant_iter_loop (iter, "{&sv}", &key, &value)) {
if (strcmp (key, "Uid") == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]