Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gir tutorial: [NOT GENERATED FUNCTION] #960

Closed
grelltrier opened this issue Aug 24, 2020 · 2 comments
Closed

Gir tutorial: [NOT GENERATED FUNCTION] #960

grelltrier opened this issue Aug 24, 2020 · 2 comments

Comments

@grelltrier
Copy link

grelltrier commented Aug 24, 2020

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.

@sdroege
Copy link
Member

sdroege commented Aug 24, 2020

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?

@grelltrier
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants