d47081
(D47081)
October 1, 2024, 1:24pm
1
Can I send multiple data types as the action arguments e.g. Gstring
and boolean
in array for example? As understand this function allows only one argument, that’s strange to be true
Reading this book but can’t find the example, only single variant option:
https://gtk-rs.org/gtk4-rs/stable/latest/book/actions.html
sdroege
(Sebastian Dröge)
October 3, 2024, 12:36pm
2
You should be able to pass e.g. a variant containing a tuple, array or dictionary.
1 Like
d47081
(D47081)
October 3, 2024, 12:41pm
3
Array is the similar types struct, where I want to pass string
and boolean
at the same time, so can’t do that with array.
But will check for 2 other variants, thanks
I’m correct, that can’t pass custom structs or classes to variants as data type?