{"action":"closed","issue":{"url":"https://api.github.com/repos/gtk-rs/gtk/issues/343","repository_url":"https://api.github.com/repos/gtk-rs/gtk","labels_url":"https://api.github.com/repos/gtk-rs/gtk/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/gtk-rs/gtk/issues/343/comments","events_url":"https://api.github.com/repos/gtk-rs/gtk/issues/343/events","html_url":"https://github.com/gtk-rs/gtk/issues/343","id":155621678,"number":343,"title":"no associated item named `new_from_file` found for type `gtk::builder::Builder`","user":{"login":"robbym","id":7476885,"avatar_url":"https://avatars.githubusercontent.com/u/7476885?v=3","gravatar_id":"","url":"https://api.github.com/users/robbym","html_url":"https://github.com/robbym","followers_url":"https://api.github.com/users/robbym/followers","following_url":"https://api.github.com/users/robbym/following{/other_user}","gists_url":"https://api.github.com/users/robbym/gists{/gist_id}","starred_url":"https://api.github.com/users/robbym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbym/subscriptions","organizations_url":"https://api.github.com/users/robbym/orgs","repos_url":"https://api.github.com/users/robbym/repos","events_url":"https://api.github.com/users/robbym/events{/privacy}","received_events_url":"https://api.github.com/users/robbym/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T23:09:09Z","updated_at":"2016-05-19T00:20:02Z","closed_at":"2016-05-19T00:20:02Z","body":"I'm trying to use the [Builder](http://gtk-rs.org/docs/gtk/struct.Builder.html) type to read a glade file, but it keeps telling me it doesn't exist. Am I missing something?\r\n```\r\nsrc/main.rs:6:19: 6:46 error: no associated item named `new_from_file` found for type `gtk::builder::Builder` in the current scope\r\nsrc/main.rs:6     let builder = gtk::Builder::new_from_file(\"test.glade\");\r\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nsrc/main.rs:7:31: 7:64 error: the type of this value must be known in this context\r\nsrc/main.rs:7     let window: gtk::Window = builder.get_object(\"main_window\").unwrap();\r\n```\r\n\r\n```\r\nextern crate gtk;\r\nuse gtk::traits::*;\r\n\r\nfn main() {\r\n    gtk::init().unwrap();\r\n    let builder = gtk::Builder::new_from_file(\"test.glade\");\r\n    let window: gtk::Window = builder.get_object(\"main_window\").unwrap();\r\n\r\n    window.set_default_size(400, 400);\r\n    window.connect_delete_event(|_, _| {\r\n        gtk::main_quit();\r\n        gtk::Inhibit(true)\r\n    });\r\n    window.show_all();\r\n\r\n    gtk::main();\r\n}\r\n```"}}