{"action":"created","issue":{"url":"https://api.github.com/repos/gtk-rs/gdk/issues/154","repository_url":"https://api.github.com/repos/gtk-rs/gdk","labels_url":"https://api.github.com/repos/gtk-rs/gdk/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/gtk-rs/gdk/issues/154/comments","events_url":"https://api.github.com/repos/gtk-rs/gdk/issues/154/events","html_url":"https://github.com/gtk-rs/gdk/pull/154","id":223899925,"number":154,"title":"Add cairo.Content to Gir.toml","user":{"login":"johncf","id":21051830,"avatar_url":"https://avatars0.githubusercontent.com/u/21051830?v=3","gravatar_id":"","url":"https://api.github.com/users/johncf","html_url":"https://github.com/johncf","followers_url":"https://api.github.com/users/johncf/followers","following_url":"https://api.github.com/users/johncf/following{/other_user}","gists_url":"https://api.github.com/users/johncf/gists{/gist_id}","starred_url":"https://api.github.com/users/johncf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncf/subscriptions","organizations_url":"https://api.github.com/users/johncf/orgs","repos_url":"https://api.github.com/users/johncf/repos","events_url":"https://api.github.com/users/johncf/events{/privacy}","received_events_url":"https://api.github.com/users/johncf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-24T17:47:12Z","updated_at":"2017-04-24T18:36:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gtk-rs/gdk/pulls/154","html_url":"https://github.com/gtk-rs/gdk/pull/154","diff_url":"https://github.com/gtk-rs/gdk/pull/154.diff","patch_url":"https://github.com/gtk-rs/gdk/pull/154.patch"},"body":"And generate `Window::create_similar_surface`.\r\n\r\ncc gtk-rs/cairo#125\r\n\r\n**WIP: Do not merge!**\r\n\r\nWhy is [`.to_glib()`](https://github.com/gtk-rs/gdk/pull/154/files#diff-f3207b87e34e26bf7646b80a6e17fdedR145) generated? I saw [this](https://github.com/gtk-rs/gdk/blob/master/src/auto/enums.rs), but I could not understand the purpose of it. It looks like an unnecessary indirection. What changes should be made in `cairo` (since there's only one type involved)? Should I simply do:\r\n```rust\r\nimpl ToGlib for Content {\r\n    type GlibType = Content;\r\n\r\n    fn to_glib(&self) -> Content {\r\n        *self\r\n    }\r\n}\r\n\r\nimpl FromGlib<Content> for Content {\r\n    fn from_glib(value: Content) -> Self {\r\n        value\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/gtk-rs/gdk/issues/comments/296784043","html_url":"https://github.com/gtk-rs/gdk/pull/154#issuecomment-296784043","issue_url":"https://api.github.com/repos/gtk-rs/gdk/issues/154","id":296784043,"user":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars3.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":"2017-04-24T18:36:13Z","updated_at":"2017-04-24T18:36:13Z","body":"For now, it's a common base to gave `ToGlib` implemented on every types. However, we should add a special case for enums because it's obviously just a basic conversion that can be performed with a `match`."}}
{"actor":{"display_login":"GuillaumeGomez"}}