Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Conversation

@SimonSapin
Copy link
Contributor

No description provided.

@SimonSapin
Copy link
Contributor Author

Should doc-comments go into https://github.com/gtk-rs/lgpl-docs? Are docs written specifically for Rust bindings also under the LGPL?

@GuillaumeGomez
Copy link
Member

If the doc comments come from somewhere under LGPL, then LGPL, otherwise it's MIT and you can leave them where they are.

if let Ok(surface) = &result {
static IMAGE_SURFACE_DATA: crate::UserDataKey<Box<dyn AsMut<[u8]>>> =
crate::UserDataKey::new();
surface.set_user_data(&IMAGE_SURFACE_DATA, Rc::new(data))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this have to be in an Rc?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, because of the getter

@sdroege
Copy link
Member

sdroege commented May 13, 2019

👍

@GuillaumeGomez
Copy link
Member

Thanks @SimonSapin (especially for the documentation!)!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants