From 05b025d25830da9f8d1af7305654c1ba32732e54 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Wed, 12 Jan 2022 14:35:49 +0100 Subject: [PATCH] verification: Make state property writable on construction --- src/session/verification/identity_verification.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session/verification/identity_verification.rs b/src/session/verification/identity_verification.rs index f6ca8738..a14e8186 100644 --- a/src/session/verification/identity_verification.rs +++ b/src/session/verification/identity_verification.rs @@ -157,7 +157,7 @@ mod imp { "The current state of this verification", State::static_type(), State::default() as i32, - glib::ParamFlags::READABLE | glib::ParamFlags::EXPLICIT_NOTIFY, + glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY, ), glib::ParamSpec::new_flags( "supported-methods", @@ -211,6 +211,7 @@ mod imp { match pspec.name() { "user" => obj.set_user(value.get().unwrap()), "session" => obj.set_session(value.get().unwrap()), + "state" => obj.set_state(value.get().unwrap()), "flow-id" => obj.set_flow_id(value.get().unwrap()), "start-time" => obj.set_start_time(value.get().unwrap()), _ => unimplemented!(),