{"action":"created","comment":{"url":"https://api.github.com/repos/gtk-rs/gtk/pulls/comments/55716309","id":55716309,"diff_hunk":"@@ -93,10 +94,14 @@ pub unsafe fn set_initialized() {\n /// initialized otherwise an Err is returned.\n pub fn init() -> Result<(), ()> {\n     skip_assert_initialized!();\n+    if is_initialized_main_thread() {\n+        return Ok(());\n+    }\n+    else if is_initialized() {","path":"src/rt.rs","position":15,"original_position":15,"commit_id":"9f0d9ac51c4705e566dcbf62c29305f812a76f89","original_commit_id":"9f0d9ac51c4705e566dcbf62c29305f812a76f89","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},"body":"Arf, didn't pay attention to the rest of the file. Motivated to do it?","created_at":"2016-03-10T17:30:40Z","updated_at":"2016-03-10T17:30:40Z","html_url":"https://github.com/gtk-rs/gtk/pull/273#discussion_r55716309","pull_request_url":"https://api.github.com/repos/gtk-rs/gtk/pulls/273","_links":{"self":{"href":"https://api.github.com/repos/gtk-rs/gtk/pulls/comments/55716309"},"html":{"href":"https://github.com/gtk-rs/gtk/pull/273#discussion_r55716309"},"pull_request":{"href":"https://api.github.com/repos/gtk-rs/gtk/pulls/273"}}},"pull_request":{"url":"https://api.github.com/repos/gtk-rs/gtk/pulls/273","id":62424877,"html_url":"https://github.com/gtk-rs/gtk/pull/273","diff_url":"https://github.com/gtk-rs/gtk/pull/273.diff","patch_url":"https://github.com/gtk-rs/gtk/pull/273.patch","issue_url":"https://api.github.com/repos/gtk-rs/gtk/issues/273","number":273,"state":"open","locked":false,"title":"Add the \"different threads\" check to `init`","user":{"login":"gkoz","id":4260361,"avatar_url":"https://avatars.githubusercontent.com/u/4260361?v=3","gravatar_id":"","url":"https://api.github.com/users/gkoz","html_url":"https://github.com/gkoz","followers_url":"https://api.github.com/users/gkoz/followers","following_url":"https://api.github.com/users/gkoz/following{/other_user}","gists_url":"https://api.github.com/users/gkoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gkoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkoz/subscriptions","organizations_url":"https://api.github.com/users/gkoz/orgs","repos_url":"https://api.github.com/users/gkoz/repos","events_url":"https://api.github.com/users/gkoz/events{/privacy}","received_events_url":"https://api.github.com/users/gkoz/received_events","type":"User","site_admin":false},"body":"Move `gdk::set_initialized` call to `set_initialized`.","created_at":"2016-03-10T17:21:52Z","updated_at":"2016-03-10T17:30:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a331faf546a7d4204135c560964f43888229cc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gtk-rs/gtk/pulls/273/commits","review_comments_url":"https://api.github.com/repos/gtk-rs/gtk/pulls/273/comments","review_comment_url":"https://api.github.com/repos/gtk-rs/gtk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gtk-rs/gtk/issues/273/comments","statuses_url":"https://api.github.com/repos/gtk-rs/gtk/statuses/9f0d9ac51c4705e566dcbf62c29305f812a76f89","head":{"label":"gkoz:application-new","ref":"application-new","sha":"9f0d9ac51c4705e566dcbf62c29305f812a76f89","user":{"login":"gkoz","id":4260361,"avatar_url":"https://avatars.githubusercontent.com/u/4260361?v=3","gravatar_id":"","url":"https://api.github.com/users/gkoz","html_url":"https://github.com/gkoz","followers_url":"https://api.github.com/users/gkoz/followers","following_url":"https://api.github.com/users/gkoz/following{/other_user}","gists_url":"https://api.github.com/users/gkoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gkoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkoz/subscriptions","organizations_url":"https://api.github.com/users/gkoz/orgs","repos_url":"https://api.github.com/users/gkoz/repos","events_url":"https://api.github.com/users/gkoz/events{/privacy}","received_events_url":"https://api.github.com/users/gkoz/received_events","type":"User","site_admin":false},"repo":{"id":33693632,"name":"gtk-rs-gtk","full_name":"gkoz/gtk-rs-gtk","owner":{"login":"gkoz","id":4260361,"avatar_url":"https://avatars.githubusercontent.com/u/4260361?v=3","gravatar_id":"","url":"https://api.github.com/users/gkoz","html_url":"https://github.com/gkoz","followers_url":"https://api.github.com/users/gkoz/followers","following_url":"https://api.github.com/users/gkoz/following{/other_user}","gists_url":"https://api.github.com/users/gkoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gkoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkoz/subscriptions","organizations_url":"https://api.github.com/users/gkoz/orgs","repos_url":"https://api.github.com/users/gkoz/repos","events_url":"https://api.github.com/users/gkoz/events{/privacy}","received_events_url":"https://api.github.com/users/gkoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gkoz/gtk-rs-gtk","description":"GTK+ 3.x bindings and wrappers for Rust","fork":true,"url":"https://api.github.com/repos/gkoz/gtk-rs-gtk","forks_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/forks","keys_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/teams","hooks_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/hooks","issue_events_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/issues/events{/number}","events_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/events","assignees_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/assignees{/user}","branches_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/branches{/branch}","tags_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/tags","blobs_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/git/refs{/sha}","trees_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/statuses/{sha}","languages_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/languages","stargazers_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/stargazers","contributors_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/contributors","subscribers_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/subscribers","subscription_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/subscription","commits_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/commits{/sha}","git_commits_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/git/commits{/sha}","comments_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/comments{/number}","issue_comment_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/issues/comments{/number}","contents_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/contents/{+path}","compare_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/merges","archive_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/downloads","issues_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/issues{/number}","pulls_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/pulls{/number}","milestones_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/milestones{/number}","notifications_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/labels{/name}","releases_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/releases{/id}","deployments_url":"https://api.github.com/repos/gkoz/gtk-rs-gtk/deployments","created_at":"2015-04-09T21:26:24Z","updated_at":"2016-01-16T14:22:31Z","pushed_at":"2016-03-10T17:22:35Z","git_url":"git://github.com/gkoz/gtk-rs-gtk.git","ssh_url":"git@github.com:gkoz/gtk-rs-gtk.git","clone_url":"https://github.com/gkoz/gtk-rs-gtk.git","svn_url":"https://github.com/gkoz/gtk-rs-gtk","homepage":null,"size":5044,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gtk-rs:master","ref":"master","sha":"abc86e5f133b0daa2e2703758e805f3c7b83117b","user":{"login":"gtk-rs","id":11757045,"avatar_url":"https://avatars.githubusercontent.com/u/11757045?v=3","gravatar_id":"","url":"https://api.github.com/users/gtk-rs","html_url":"https://github.com/gtk-rs","followers_url":"https://api.github.com/users/gtk-rs/followers","following_url":"https://api.github.com/users/gtk-rs/following{/other_user}","gists_url":"https://api.github.com/users/gtk-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/gtk-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtk-rs/subscriptions","organizations_url":"https://api.github.com/users/gtk-rs/orgs","repos_url":"https://api.github.com/users/gtk-rs/repos","events_url":"https://api.github.com/users/gtk-rs/events{/privacy}","received_events_url":"https://api.github.com/users/gtk-rs/received_events","type":"Organization","site_admin":false},"repo":{"id":33257338,"name":"gtk","full_name":"gtk-rs/gtk","owner":{"login":"gtk-rs","id":11757045,"avatar_url":"https://avatars.githubusercontent.com/u/11757045?v=3","gravatar_id":"","url":"https://api.github.com/users/gtk-rs","html_url":"https://github.com/gtk-rs","followers_url":"https://api.github.com/users/gtk-rs/followers","following_url":"https://api.github.com/users/gtk-rs/following{/other_user}","gists_url":"https://api.github.com/users/gtk-rs/gists{/gist_id}","starred_url":"https://api.github.com/users/gtk-rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtk-rs/subscriptions","organizations_url":"https://api.github.com/users/gtk-rs/orgs","repos_url":"https://api.github.com/users/gtk-rs/repos","events_url":"https://api.github.com/users/gtk-rs/events{/privacy}","received_events_url":"https://api.github.com/users/gtk-rs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gtk-rs/gtk","description":"GTK+ 3.x bindings and wrappers for Rust","fork":false,"url":"https://api.github.com/repos/gtk-rs/gtk","forks_url":"https://api.github.com/repos/gtk-rs/gtk/forks","keys_url":"https://api.github.com/repos/gtk-rs/gtk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtk-rs/gtk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtk-rs/gtk/teams","hooks_url":"https://api.github.com/repos/gtk-rs/gtk/hooks","issue_events_url":"https://api.github.com/repos/gtk-rs/gtk/issues/events{/number}","events_url":"https://api.github.com/repos/gtk-rs/gtk/events","assignees_url":"https://api.github.com/repos/gtk-rs/gtk/assignees{/user}","branches_url":"https://api.github.com/repos/gtk-rs/gtk/branches{/branch}","tags_url":"https://api.github.com/repos/gtk-rs/gtk/tags","blobs_url":"https://api.github.com/repos/gtk-rs/gtk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtk-rs/gtk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtk-rs/gtk/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtk-rs/gtk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtk-rs/gtk/statuses/{sha}","languages_url":"https://api.github.com/repos/gtk-rs/gtk/languages","stargazers_url":"https://api.github.com/repos/gtk-rs/gtk/stargazers","contributors_url":"https://api.github.com/repos/gtk-rs/gtk/contributors","subscribers_url":"https://api.github.com/repos/gtk-rs/gtk/subscribers","subscription_url":"https://api.github.com/repos/gtk-rs/gtk/subscription","commits_url":"https://api.github.com/repos/gtk-rs/gtk/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtk-rs/gtk/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtk-rs/gtk/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtk-rs/gtk/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtk-rs/gtk/contents/{+path}","compare_url":"https://api.github.com/repos/gtk-rs/gtk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtk-rs/gtk/merges","archive_url":"https://api.github.com/repos/gtk-rs/gtk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtk-rs/gtk/downloads","issues_url":"https://api.github.com/repos/gtk-rs/gtk/issues{/number}","pulls_url":"https://api.github.com/repos/gtk-rs/gtk/pulls{/number}","milestones_url":"https://api.github.com/repos/gtk-rs/gtk/milestones{/number}","notifications_url":"https://api.github.com/repos/gtk-rs/gtk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtk-rs/gtk/labels{/name}","releases_url":"https://api.github.com/repos/gtk-rs/gtk/releases{/id}","deployments_url":"https://api.github.com/repos/gtk-rs/gtk/deployments","created_at":"2015-04-01T15:57:09Z","updated_at":"2016-03-10T16:15:54Z","pushed_at":"2016-03-10T17:22:35Z","git_url":"git://github.com/gtk-rs/gtk.git","ssh_url":"git@github.com:gtk-rs/gtk.git","clone_url":"https://github.com/gtk-rs/gtk.git","svn_url":"https://github.com/gtk-rs/gtk","homepage":"http://gtk-rs.org/","size":5173,"stargazers_count":232,"watchers_count":232,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":17,"forks":40,"open_issues":17,"watchers":232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gtk-rs/gtk/pulls/273"},"html":{"href":"https://github.com/gtk-rs/gtk/pull/273"},"issue":{"href":"https://api.github.com/repos/gtk-rs/gtk/issues/273"},"comments":{"href":"https://api.github.com/repos/gtk-rs/gtk/issues/273/comments"},"review_comments":{"href":"https://api.github.com/repos/gtk-rs/gtk/pulls/273/comments"},"review_comment":{"href":"https://api.github.com/repos/gtk-rs/gtk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gtk-rs/gtk/pulls/273/commits"},"statuses":{"href":"https://api.github.com/repos/gtk-rs/gtk/statuses/9f0d9ac51c4705e566dcbf62c29305f812a76f89"}}}}