Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

glib: implement FromGlibContainer for GString #181

Merged
merged 2 commits into from Dec 2, 2020

Conversation

bilelmoussaoui
Copy link
Member

Needed by gtk-rs/gtk4-rs#89

glib/src/gstring.rs Outdated Show resolved Hide resolved
glib/src/gstring.rs Outdated Show resolved Hide resolved
glib/src/gstring.rs Outdated Show resolved Hide resolved
glib/src/gstring.rs Outdated Show resolved Hide resolved
GString can hold a pointer that might be null and calling slice::from_raw_part
on it causes an UB. Instead, we now return an empty string in such case
@sdroege sdroege merged commit 6868cbb into master Dec 2, 2020
@sdroege sdroege deleted the bilelmoussaoui/gstring branch December 2, 2020 12:10
elmarco pushed a commit to elmarco/gtk-rs that referenced this pull request Feb 10, 2021
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.

None yet

2 participants