gtk-rs / examples

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

Clone_macros doesn't work #293

Closed swanux closed 4 years ago

swanux commented 4 years ago

I've tried to use this macro (even the example) but it doesn't work. There is no error during compile time, but it does nothing on button click (the example doesn't even open). Does anyone have any idea?

GuillaumeGomez commented 4 years ago

If you want help, you need to provide code, we can't guess what's wrong without it.

swanux commented 4 years ago

I mean the example which you provided https://github.com/gtk-rs/examples/blob/master/src/bin/clone_macro.rs

But here's my code as well: https://pastebin.com/6nc8k94s

GuillaumeGomez commented 4 years ago

I can confirm that the clone_macro example is definitely not working... Checking what's going on.

swanux commented 4 years ago

Thank you!

GuillaumeGomez commented 4 years ago

Ok, understood the problem in the example. It's very stupid... I'll add some debug calls in the clone macro to help users because it's definitely an issue... I'll comment with the PR so you can see what is wrong.

GuillaumeGomez commented 4 years ago

You can see #294.

swanux commented 4 years ago

Yeah, I see. It really wasn't that complicated. Now my program also works. Thank you very much for the quick help!