Closed idanarye closed 3 years ago
While you're at it, please change the signature of route_signal
to optionally take references and doing the clone inside. So probably obj: &impl glib::ObjectExt
and impl<A: actix::Actor> IntoGenerateRoutingGtkHandler for &actix::Addr<A>
. There are more proficient ways to generalize over owned-ness, but that should be good enough.
Now that I look at it, it doesn't even need to be cloned...
This is not the actual mechanism yet - I just added an example that uses events, so that I can modify that example as the action routing mechanism advances.