pub trait ActionableExtManual: 'static {
    // Required method
    fn set_action_target(&self, target: Option<impl Into<Variant>>);
}
Expand description

Trait containing manually implemented methods of Actionable.

Required Methods§

source

fn set_action_target(&self, target: Option<impl Into<Variant>>)

Sets the target of an actionable widget.

This is a convenience function that calls GLib::Variant::new() for @format_string and uses the result to call ActionableExt::set_action_target_value().

If you are setting a string-valued target and want to set the action name at the same time, you can use ActionableExt::set_detailed_action_name().

format_string

a glib::Variant format string

Implementors§