Skip to content

Instantly share code, notes, and snippets.

@trimoq
Last active August 30, 2019 18:43
Show Gist options
  • Save trimoq/ee57703b37cf98cbd8df7ef8a7887eb3 to your computer and use it in GitHub Desktop.
Save trimoq/ee57703b37cf98cbd8df7ef8a7887eb3 to your computer and use it in GitHub Desktop.
Callback with gtk-rs, capturing passed references
btn_load_file.connect_clicked( move | widget | {
  // …
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment