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

pango: export Glyph* manual types #204

Merged
merged 3 commits into from
Dec 9, 2020
Merged

pango: export Glyph* manual types #204

merged 3 commits into from
Dec 9, 2020

Conversation

bilelmoussaoui
Copy link
Member

Otherwise gir produces code that uses pango::Glyph* which can't be found

error[E0412]: cannot find type `GlyphInfo` in crate `pango`
  --> gsk4/src/auto/text_node.rs:49:44
   |
49 |       pub fn get_glyphs(&self) -> Vec<pango::GlyphInfo> {
   |                                              ^^^^^^^^^
   | 
  ::: /home/bilelmoussaoui/.cargo/git/checkouts/gtk-rs-48ef14c1f17c79fb/0ef3630/pango/src/auto/glyph_item.rs:8:1
   |
8  | / glib::glib_wrapper! {
9  | |     #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
10 | |     pub struct GlyphItem(Boxed<ffi::PangoGlyphItem>);
11 | |
...  |
16 | |     }
17 | | }
   | |_- similarly named struct `GlyphItem` defined here
   |
help: a struct with a similar name exists
   |
49 |     pub fn get_glyphs(&self) -> Vec<pango::GlyphItem> {
   |                                            ^^^^^^^^^
help: consider importing this struct
   |
5  | use pango::glyph::GlyphInfo;
   |

Otherwise gir produces code that uses `pango::Glyph*` which can't be found
pango/src/lib.rs Outdated Show resolved Hide resolved
@sdroege sdroege merged commit 633d1d8 into master Dec 9, 2020
@sdroege sdroege deleted the bilelmoussaoui-patch-1 branch December 9, 2020 07:43
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants