[fractal/fractal-next] user: Fix broken display-name property
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] user: Fix broken display-name property
- Date: Thu, 9 Dec 2021 11:59:54 +0000 (UTC)
commit d545bfc220de2186de29214f01f39ee9351fa536
Author: Julian Sparber <julian sparber net>
Date: Thu Dec 2 18:12:51 2021 +0100
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::<Option<String>>().unwrap());
+ }
"session" => self
.session
.set(value.get::<Session>().unwrap().downgrade())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]