From d545bfc220de2186de29214f01f39ee9351fa536 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Thu, 2 Dec 2021 18:12:51 +0100 Subject: [PATCH] user: Fix broken display-name property --- src/session/user.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/session/user.rs b/src/session/user.rs index 62ce0906..1bcac1c9 100644 --- a/src/session/user.rs +++ b/src/session/user.rs @@ -64,7 +64,7 @@ mod imp { fn set_property( &self, - _obj: &Self::Type, + obj: &Self::Type, _id: usize, value: &glib::Value, pspec: &glib::ParamSpec, @@ -74,6 +74,9 @@ mod imp { let user_id = value.get::<&str>().unwrap().try_into().unwrap(); self.user_id.set(user_id).unwrap(); } + "display-name" => { + obj.set_display_name(value.get::>().unwrap()); + } "session" => self .session .set(value.get::().unwrap().downgrade())