verification: Make state property writable on construction
This commit is contained in:
parent
5a7fc6ae92
commit
05b025d258
1 changed files with 2 additions and 1 deletions
|
@ -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!(),
|
||||
|
|
Loading…
Reference in a new issue