idanarye / woab

Widgets on Actors Bridge - a GUI microframework for combining GTK with Actix
https://crates.io/crates/woab
MIT License
14 stars 1 forks source link

Close #21 - add mechanisms for routing actions #25

Closed idanarye closed 3 years ago

idanarye commented 3 years ago

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.

piegamesde commented 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.

idanarye commented 3 years ago

Now that I look at it, it doesn't even need to be cloned...