How can I use Window
reference as VariantType
for SimpleAction
?
For example:
SimpleAction::new("name", Some(&Window::static_variant_type()))
or there is simple types allowed only?
maybe the Value
could help with that
How can I use Window
reference as VariantType
for SimpleAction
?
For example:
SimpleAction::new("name", Some(&Window::static_variant_type()))
or there is simple types allowed only?
maybe the Value
could help with that
You cannot put object instances inside a GVariant
: it’s a wire serialisation format, and the only types it recognises are described in the GVariantType
docs.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.