gtk-rs / examples

DEPRECATED, use https://github.com/gtk-rs/gtk-rs repository instead!
MIT License
283 stars 76 forks source link

Fix clone_macro example #294

Closed GuillaumeGomez closed 4 years ago

GuillaumeGomez commented 4 years ago

I'll then backport this on the pending branch. Fixes #293.

Full explanations: the state2 variable needs to be cloned otherwise it won't exist anymore, which will prevent the closure to be actually "called" (it'll return early).

cc @sdroege @EPashkin

EPashkin commented 4 years ago

👍

sdroege commented 4 years ago

:+1: