{"action":"created","issue":{"url":"https://api.github.com/repos/rust-gnome/examples/issues/23","labels_url":"https://api.github.com/repos/rust-gnome/examples/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/rust-gnome/examples/issues/23/comments","events_url":"https://api.github.com/repos/rust-gnome/examples/issues/23/events","html_url":"https://github.com/rust-gnome/examples/issues/23","id":95758225,"number":23,"title":"examples don't build; perhaps out of sync with crates.io versions?","user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-17T22:38:10Z","updated_at":"2015-07-17T22:40:49Z","closed_at":null,"body":"examples don't build; perhaps out of sync with crates.io versions?\r\n\r\nI checked out the examples repository locally, assuming that I would be able to just run `cargo build` and go from there.\r\n\r\nHowever, there are some clear API mismatches that break the build of the examples; it seems like they may have been recently updated to use versions of the rust gtk bindings that do not return `Result` anymore?\r\n\r\n```\r\n% git log -1\r\ncommit 75d11d8c6c6881c131dfbee803e670fcd28b8c35\r\nMerge: 8958480 a88d4fa\r\nAuthor: Guillaume Gomez <guillaume1.gomez@gmail.com>\r\nDate:   Sun Jul 5 00:40:44 2015 +0200\r\n\r\n    Merge pull request #22 from simias/master\r\n    \r\n    Use correct name for \"set_homogeneous\" following upstream change\r\n% cargo build\r\nsrc/basic.rs:13:17: 13:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/basic.rs:13     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nsrc/cairotest.rs:15:17: 15:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/cairotest.rs:15     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to previous error\r\nerror: aborting due to previous error\r\nsrc/gtktest.rs:53:17: 53:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/gtktest.rs:53     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nsrc/notebook.rs:54:17: 54:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/notebook.rs:54     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to previous error\r\nerror: aborting due to previous error\r\nsrc/sync_widgets.rs:11:17: 11:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/sync_widgets.rs:11     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nsrc/text_viewer.rs:15:17: 15:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/text_viewer.rs:15     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nsrc/sync_widgets.rs:24:10: 24:31 error: type `gtk::widgets::_box::Box` does not implement any method in scope named `set_homogeneous`\r\nsrc/sync_widgets.rs:24     hbox.set_homogeneous(true);\r\n                                ^~~~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to 2 previous errors\r\nerror: aborting due to previous error\r\n   Compiling rgtk-examples v0.0.1 (file:///home/pnkfelix/Dev/Rust/examples)\r\nBuild failed, waiting for other jobs to finish...\r\nsrc/treeview.rs:21:17: 21:72 error: type `()` does not implement any method in scope named `unwrap_or_else`\r\nsrc/treeview.rs:21     gtk::init().unwrap_or_else(|_| panic!(\"Failed to initialize GTK.\"));\r\n                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nerror: aborting due to previous error\r\nCould not compile `rgtk-examples`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-gnome/examples/issues/comments/122437633","html_url":"https://github.com/rust-gnome/examples/issues/23#issuecomment-122437633","issue_url":"https://api.github.com/repos/rust-gnome/examples/issues/23","id":122437633,"user":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars.githubusercontent.com/u/3050060?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T22:40:49Z","updated_at":"2015-07-17T22:40:49Z","body":"I'm checking it. It's weird since travis build without problem..."}}