{"action":"created","comment":{"url":"https://api.github.com/repos/gtk-rs/glib/pulls/comments/205946202","pull_request_review_id":141319986,"id":205946202,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTk0NjIwMg==","diff_hunk":"@@ -0,0 +1,54 @@\n+// Copyright 2018, The Gtk-rs Project Developers.\n+// See the COPYRIGHT file at the top-level directory of this distribution.\n+// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>\n+\n+use ffi;\n+use translate::*;\n+\n+#[repr(C)]\n+pub struct Quark(ffi::GQuark);\n+\n+impl Quark {\n+    pub fn from_string(s: &str) -> Quark {\n+        unsafe {\n+            from_glib(ffi::g_quark_from_string(s.to_glib_none().0))\n+        }\n+    }\n+\n+    pub fn from_static_string(s: &'static str) -> Quark {\n+        unsafe {\n+            from_glib(ffi::g_quark_from_static_string(s.to_glib_none().0))\n+        }\n+    }\n+\n+    pub fn to_string(&self) -> Option<String> {\n+        unsafe {\n+            from_glib_none(ffi::g_quark_to_string(self.to_glib()))","path":"src/quark.rs","position":26,"original_position":26,"commit_id":"bbf3dce056297803e9da2d0d17d4a9349c6c4860","original_commit_id":"bbf3dce056297803e9da2d0d17d4a9349c6c4860","user":{"login":"sdroege","id":301846,"node_id":"MDQ6VXNlcjMwMTg0Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/301846?v=4","gravatar_id":"","url":"https://api.github.com/users/sdroege","html_url":"https://github.com/sdroege","followers_url":"https://api.github.com/users/sdroege/followers","following_url":"https://api.github.com/users/sdroege/following{/other_user}","gists_url":"https://api.github.com/users/sdroege/gists{/gist_id}","starred_url":"https://api.github.com/users/sdroege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdroege/subscriptions","organizations_url":"https://api.github.com/users/sdroege/orgs","repos_url":"https://api.github.com/users/sdroege/repos","events_url":"https://api.github.com/users/sdroege/events{/privacy}","received_events_url":"https://api.github.com/users/sdroege/received_events","type":"User","site_admin":false},"body":"The return value has static lifetime and is never NULL. You can directly use CStr here and return a static string slice","created_at":"2018-07-28T15:38:04Z","updated_at":"2018-07-28T15:38:50Z","html_url":"https://github.com/gtk-rs/glib/pull/362#discussion_r205946202","pull_request_url":"https://api.github.com/repos/gtk-rs/glib/pulls/362","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/gtk-rs/glib/pulls/comments/205946202"},"html":{"href":"https://github.com/gtk-rs/glib/pull/362#discussion_r205946202"},"pull_request":{"href":"https://api.github.com/repos/gtk-rs/glib/pulls/362"}}},"pull_request":{"url":"https://api.github.com/repos/gtk-rs/glib/pulls/362","id":204595743,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTk1NzQz","html_url":"https://github.com/gtk-rs/glib/pull/362","diff_url":"https://github.com/gtk-rs/glib/pull/362.diff","patch_url":"https://github.com/gtk-rs/glib/pull/362.patch","issue_url":"https://api.github.com/repos/gtk-rs/glib/issues/362","number":362,"state":"open","locked":false,"title":"Add Quark type","user":{"login":"GuillaumeGomez","id":3050060,"node_id":"MDQ6VXNlcjMwNTAwNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3050060?v=4","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":"","created_at":"2018-07-28T14:38:27Z","updated_at":"2018-07-28T15:38:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cc3f93a5e8bc22b5b033a7242dfd0580a11a997","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gtk-rs/glib/pulls/362/commits","review_comments_url":"https://api.github.com/repos/gtk-rs/glib/pulls/362/comments","review_comment_url":"https://api.github.com/repos/gtk-rs/glib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gtk-rs/glib/issues/362/comments","statuses_url":"https://api.github.com/repos/gtk-rs/glib/statuses/bbf3dce056297803e9da2d0d17d4a9349c6c4860","head":{"label":"GuillaumeGomez:quark","ref":"quark","sha":"bbf3dce056297803e9da2d0d17d4a9349c6c4860","user":{"login":"GuillaumeGomez","id":3050060,"node_id":"MDQ6VXNlcjMwNTAwNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3050060?v=4","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},"repo":{"id":35502856,"node_id":"MDEwOlJlcG9zaXRvcnkzNTUwMjg1Ng==","name":"glib","full_name":"GuillaumeGomez/glib","owner":{"login":"GuillaumeGomez","id":3050060,"node_id":"MDQ6VXNlcjMwNTAwNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/3050060?v=4","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},"private":false,"html_url":"https://github.com/GuillaumeGomez/glib","description":"Glib bindings and wrappers for Rust","fork":true,"url":"https://api.github.com/repos/GuillaumeGomez/glib","forks_url":"https://api.github.com/repos/GuillaumeGomez/glib/forks","keys_url":"https://api.github.com/repos/GuillaumeGomez/glib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GuillaumeGomez/glib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GuillaumeGomez/glib/teams","hooks_url":"https://api.github.com/repos/GuillaumeGomez/glib/hooks","issue_events_url":"https://api.github.com/repos/GuillaumeGomez/glib/issues/events{/number}","events_url":"https://api.github.com/repos/GuillaumeGomez/glib/events","assignees_url":"https://api.github.com/repos/GuillaumeGomez/glib/assignees{/user}","branches_url":"https://api.github.com/repos/GuillaumeGomez/glib/branches{/branch}","tags_url":"https://api.github.com/repos/GuillaumeGomez/glib/tags","blobs_url":"https://api.github.com/repos/GuillaumeGomez/glib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GuillaumeGomez/glib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GuillaumeGomez/glib/git/refs{/sha}","trees_url":"https://api.github.com/repos/GuillaumeGomez/glib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GuillaumeGomez/glib/statuses/{sha}","languages_url":"https://api.github.com/repos/GuillaumeGomez/glib/languages","stargazers_url":"https://api.github.com/repos/GuillaumeGomez/glib/stargazers","contributors_url":"https://api.github.com/repos/GuillaumeGomez/glib/contributors","subscribers_url":"https://api.github.com/repos/GuillaumeGomez/glib/subscribers","subscription_url":"https://api.github.com/repos/GuillaumeGomez/glib/subscription","commits_url":"https://api.github.com/repos/GuillaumeGomez/glib/commits{/sha}","git_commits_url":"https://api.github.com/repos/GuillaumeGomez/glib/git/commits{/sha}","comments_url":"https://api.github.com/repos/GuillaumeGomez/glib/comments{/number}","issue_comment_url":"https://api.github.com/repos/GuillaumeGomez/glib/issues/comments{/number}","contents_url":"https://api.github.com/repos/GuillaumeGomez/glib/contents/{+path}","compare_url":"https://api.github.com/repos/GuillaumeGomez/glib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GuillaumeGomez/glib/merges","archive_url":"https://api.github.com/repos/GuillaumeGomez/glib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GuillaumeGomez/glib/downloads","issues_url":"https://api.github.com/repos/GuillaumeGomez/glib/issues{/number}","pulls_url":"https://api.github.com/repos/GuillaumeGomez/glib/pulls{/number}","milestones_url":"https://api.github.com/repos/GuillaumeGomez/glib/milestones{/number}","notifications_url":"https://api.github.com/repos/GuillaumeGomez/glib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GuillaumeGomez/glib/labels{/name}","releases_url":"https://api.github.com/repos/GuillaumeGomez/glib/releases{/id}","deployments_url":"https://api.github.com/repos/GuillaumeGomez/glib/deployments","created_at":"2015-05-12T17:34:00Z","updated_at":"2018-07-03T22:29:41Z","pushed_at":"2018-07-28T15:36:06Z","git_url":"git://github.com/GuillaumeGomez/glib.git","ssh_url":"git@github.com:GuillaumeGomez/glib.git","clone_url":"https://github.com/GuillaumeGomez/glib.git","svn_url":"https://github.com/GuillaumeGomez/glib","homepage":"","size":3685,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gtk-rs:master","ref":"master","sha":"a45a4976de05196b657bbbe15a50df0c9a79b196","user":{"login":"gtk-rs","id":11757045,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzU3MDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/11757045?v=4","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":33257546,"node_id":"MDEwOlJlcG9zaXRvcnkzMzI1NzU0Ng==","name":"glib","full_name":"gtk-rs/glib","owner":{"login":"gtk-rs","id":11757045,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzU3MDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/11757045?v=4","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/glib","description":"GLib bindings for Rust","fork":false,"url":"https://api.github.com/repos/gtk-rs/glib","forks_url":"https://api.github.com/repos/gtk-rs/glib/forks","keys_url":"https://api.github.com/repos/gtk-rs/glib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtk-rs/glib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtk-rs/glib/teams","hooks_url":"https://api.github.com/repos/gtk-rs/glib/hooks","issue_events_url":"https://api.github.com/repos/gtk-rs/glib/issues/events{/number}","events_url":"https://api.github.com/repos/gtk-rs/glib/events","assignees_url":"https://api.github.com/repos/gtk-rs/glib/assignees{/user}","branches_url":"https://api.github.com/repos/gtk-rs/glib/branches{/branch}","tags_url":"https://api.github.com/repos/gtk-rs/glib/tags","blobs_url":"https://api.github.com/repos/gtk-rs/glib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtk-rs/glib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtk-rs/glib/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtk-rs/glib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtk-rs/glib/statuses/{sha}","languages_url":"https://api.github.com/repos/gtk-rs/glib/languages","stargazers_url":"https://api.github.com/repos/gtk-rs/glib/stargazers","contributors_url":"https://api.github.com/repos/gtk-rs/glib/contributors","subscribers_url":"https://api.github.com/repos/gtk-rs/glib/subscribers","subscription_url":"https://api.github.com/repos/gtk-rs/glib/subscription","commits_url":"https://api.github.com/repos/gtk-rs/glib/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtk-rs/glib/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtk-rs/glib/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtk-rs/glib/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtk-rs/glib/contents/{+path}","compare_url":"https://api.github.com/repos/gtk-rs/glib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtk-rs/glib/merges","archive_url":"https://api.github.com/repos/gtk-rs/glib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtk-rs/glib/downloads","issues_url":"https://api.github.com/repos/gtk-rs/glib/issues{/number}","pulls_url":"https://api.github.com/repos/gtk-rs/glib/pulls{/number}","milestones_url":"https://api.github.com/repos/gtk-rs/glib/milestones{/number}","notifications_url":"https://api.github.com/repos/gtk-rs/glib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtk-rs/glib/labels{/name}","releases_url":"https://api.github.com/repos/gtk-rs/glib/releases{/id}","deployments_url":"https://api.github.com/repos/gtk-rs/glib/deployments","created_at":"2015-04-01T16:01:03Z","updated_at":"2018-07-28T13:47:03Z","pushed_at":"2018-07-28T15:36:07Z","git_url":"git://github.com/gtk-rs/glib.git","ssh_url":"git@github.com:gtk-rs/glib.git","clone_url":"https://github.com/gtk-rs/glib.git","svn_url":"https://github.com/gtk-rs/glib","homepage":"http://gtk-rs.org/","size":3713,"stargazers_count":30,"watchers_count":30,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":33,"open_issues":26,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gtk-rs/glib/pulls/362"},"html":{"href":"https://github.com/gtk-rs/glib/pull/362"},"issue":{"href":"https://api.github.com/repos/gtk-rs/glib/issues/362"},"comments":{"href":"https://api.github.com/repos/gtk-rs/glib/issues/362/comments"},"review_comments":{"href":"https://api.github.com/repos/gtk-rs/glib/pulls/362/comments"},"review_comment":{"href":"https://api.github.com/repos/gtk-rs/glib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gtk-rs/glib/pulls/362/commits"},"statuses":{"href":"https://api.github.com/repos/gtk-rs/glib/statuses/bbf3dce056297803e9da2d0d17d4a9349c6c4860"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sdroege"}}