Skip to content

Commit

Permalink
Merge pull request #663 from GuillaumeGomez/fix-display
Browse files Browse the repository at this point in the history
Fix display
  • Loading branch information
GuillaumeGomez committed Nov 16, 2018
2 parents 1b7c3da + 1a5313d commit 17bb021
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -12,3 +12,10 @@ script:
- cargo test --release
- git clone -q https://github.com/gkoz/gir-files tests/gir-files
- ./tests/sys/test.sh
# check if generation generated something buildable
- git clone -q https://github.com/gtk-rs/gtk gtk-test
- git clone -q https://github.com/gtk-rs/gir-files gtk-gir-files
- cd gtk-test
- ../target/release/gir -d ../gtk-gir-files/ -o .
- rm ../Cargo.*
- cargo build
3 changes: 3 additions & 0 deletions src/analysis/object.rs
Expand Up @@ -281,6 +281,9 @@ pub fn interface(env: &Env, obj: &GObject, deps: &[library::TypeId]) -> Option<I
imports.add("gobject_ffi", None);
imports.add("std::mem", None);
imports.add("std::ptr", None);
if obj.generate_display_trait {
imports.add("std::fmt", None);
}

let supertypes = supertypes::analyze(env, iface_tid, &mut imports);

Expand Down

0 comments on commit 17bb021

Please sign in to comment.