diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-03-16 17:33:34 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-03-16 17:33:34 +0100 |
commit | 21e4aa8380b6d9ee1d90706e63594056cd72bd78 (patch) | |
tree | 6a0d2fa7f6162b94ae1f30e32cc41c61cb05307f | |
parent | cb2f9784f3671b278a94cceefa96fb767ef3c149 (diff) |
user: Translate property x-session property name to match the proxy one
The proxy "xsession" property is exposed as "x-session" to the API, so
don't break the API, but translate the name internally.
-rw-r--r-- | src/libaccountsservice/act-user.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libaccountsservice/act-user.c b/src/libaccountsservice/act-user.c index 84774c7..bc92cf4 100644 --- a/src/libaccountsservice/act-user.c +++ b/src/libaccountsservice/act-user.c @@ -240,7 +240,10 @@ act_user_get_property (GObject *object, if (user->accounts_proxy != NULL) { const char *property_name; - property_name = g_param_spec_get_name (pspec); + if (param_id == PROP_X_SESSION) + property_name = "xsession"; + else + property_name = g_param_spec_get_name (pspec); g_object_get_property (G_OBJECT (user->accounts_proxy), property_name, value); |