You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the tutorial and when I tried generating bindings for gtk-layer-shell, I noticed a number of [NOT GENERATED FUNCTION] after running gir -m not_bound. The tutorial does not mention what you are supposed to do in this case. The README.md mentions how to deal with global functions though so I was able to resolve my issue. However I think it would be helpful to add something alike the following to the tutorial:
If you see [NOT GENERATED FUNCTION] when trying to generate bindings, then you have global functions in your project. To generate code for all global functions, add Gtk.* to the generate array. To re-export the functions you also need to add pub use self::auto::functions::*; to your lib.rs.
The text was updated successfully, but these errors were encountered:
It might also mean that you didn't configure the type in question in your Gir.toml AFAIK, but yes that would be useful to add indeed. Do you want to create a PR?
I just opened one.
Sorry for opening all those issues here. I didn't know the tutorial is in another repo. These are my first pull requests. Gotta start somewhere :) gtk-rs/gtk-rs.github.io#170
I followed the tutorial and when I tried generating bindings for gtk-layer-shell, I noticed a number of [NOT GENERATED FUNCTION] after running
gir -m not_bound
. The tutorial does not mention what you are supposed to do in this case. The README.md mentions how to deal with global functions though so I was able to resolve my issue. However I think it would be helpful to add something alike the following to the tutorial:If you see [NOT GENERATED FUNCTION] when trying to generate bindings, then you have global functions in your project. To generate code for all global functions, add Gtk.* to the generate array. To re-export the functions you also need to add
pub use self::auto::functions::*;
to your lib.rs.The text was updated successfully, but these errors were encountered: