summaryrefslogtreecommitdiff
path: root/liblightdm-gobject
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2012-02-01 15:18:36 -0500
committerMichael Terry <michael.terry@canonical.com>2012-02-01 15:18:36 -0500
commitfcd832f96f3433dcd2469e252e0ce46b18b5f15b (patch)
tree5956790d5159af3c5f88726d48f782f7665f9d26 /liblightdm-gobject
parentd231810ff7c646680aa19eca01a0078cce9379d6 (diff)
downloadlightdm-fcd832f96f3433dcd2469e252e0ce46b18b5f15b.tar.gz
check accountsservice for XKeyboardLayout value per user
Diffstat (limited to 'liblightdm-gobject')
-rw-r--r--liblightdm-gobject/user.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/liblightdm-gobject/user.c b/liblightdm-gobject/user.c
index b905dd2b..cc195b0c 100644
--- a/liblightdm-gobject/user.c
+++ b/liblightdm-gobject/user.c
@@ -1,4 +1,5 @@
-/*
+/* -*- Mode: C; indent-tabs-mode:nil; tab-width:4 -*-
+ *
* Copyright (C) 2010 Robert Ancell.
* Author: Robert Ancell <robert.ancell@canonical.com>
*
@@ -1196,6 +1197,7 @@ load_accounts_service (LightDMUser *user)
LightDMUserListPrivate *list_priv = GET_LIST_PRIVATE (priv->user_list);
UserAccountObject *account = NULL;
GList *iter;
+ gchar *value;
/* First, find AccountObject proxy */
for (iter = list_priv->user_account_objects; iter; iter = iter->next)
@@ -1218,6 +1220,13 @@ load_accounts_service (LightDMUser *user)
g_free (priv->session);
priv->session = get_string_property (account->proxy, "XSession");
+ value = get_string_property (account->proxy, "XKeyboardLayout");
+ if (value)
+ {
+ g_free (priv->layout);
+ priv->layout = value;
+ }
+
return TRUE;
}