{"action":"created","comment":{"url":"https://api.github.com/repos/billyquith/GWork/pulls/comments/64186078","id":64186078,"diff_hunk":"@@ -50,13 +50,22 @@ void Gwk::Platform::SetCursor(unsigned char iCursor)\n \n Gwk::String Gwk::Platform::GetClipboardText()\n {\n-    return gs_ClipboardEmulator;\n+    if (al_clipboard_has_text(g_display) {\n+        char* clip = al_get_clipboard_text(g_display);\n+\n+        if (clip != NULL) {","path":"source/platform/platforms/Allegro5Platform.cpp","position":17,"original_position":17,"commit_id":"d5dc1467a4a8dea0ab7d5678a9a18bb8cc2ccb8d","original_commit_id":"d5dc1467a4a8dea0ab7d5678a9a18bb8cc2ccb8d","user":{"login":"billyquith","id":1754471,"avatar_url":"https://avatars.githubusercontent.com/u/1754471?v=3","gravatar_id":"","url":"https://api.github.com/users/billyquith","html_url":"https://github.com/billyquith","followers_url":"https://api.github.com/users/billyquith/followers","following_url":"https://api.github.com/users/billyquith/following{/other_user}","gists_url":"https://api.github.com/users/billyquith/gists{/gist_id}","starred_url":"https://api.github.com/users/billyquith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyquith/subscriptions","organizations_url":"https://api.github.com/users/billyquith/orgs","repos_url":"https://api.github.com/users/billyquith/repos","events_url":"https://api.github.com/users/billyquith/events{/privacy}","received_events_url":"https://api.github.com/users/billyquith/received_events","type":"User","site_admin":false},"body":"This project is C++11 so we can use `nullptr`. ","created_at":"2016-05-23T08:38:23Z","updated_at":"2016-05-23T08:38:23Z","html_url":"https://github.com/billyquith/GWork/pull/22#discussion_r64186078","pull_request_url":"https://api.github.com/repos/billyquith/GWork/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/billyquith/GWork/pulls/comments/64186078"},"html":{"href":"https://github.com/billyquith/GWork/pull/22#discussion_r64186078"},"pull_request":{"href":"https://api.github.com/repos/billyquith/GWork/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/billyquith/GWork/pulls/22","id":70993847,"html_url":"https://github.com/billyquith/GWork/pull/22","diff_url":"https://github.com/billyquith/GWork/pull/22.diff","patch_url":"https://github.com/billyquith/GWork/pull/22.patch","issue_url":"https://api.github.com/repos/billyquith/GWork/issues/22","number":22,"state":"open","locked":false,"title":"Add clipboard functionality for Allegro","user":{"login":"Grant1219","id":847833,"avatar_url":"https://avatars.githubusercontent.com/u/847833?v=3","gravatar_id":"","url":"https://api.github.com/users/Grant1219","html_url":"https://github.com/Grant1219","followers_url":"https://api.github.com/users/Grant1219/followers","following_url":"https://api.github.com/users/Grant1219/following{/other_user}","gists_url":"https://api.github.com/users/Grant1219/gists{/gist_id}","starred_url":"https://api.github.com/users/Grant1219/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grant1219/subscriptions","organizations_url":"https://api.github.com/users/Grant1219/orgs","repos_url":"https://api.github.com/users/Grant1219/repos","events_url":"https://api.github.com/users/Grant1219/events{/privacy}","received_events_url":"https://api.github.com/users/Grant1219/received_events","type":"User","site_admin":false},"body":"As of Allegro 5.1.12 there has been support for getting and setting clipboard text.\r\n\r\nhttp://liballeg.org/a5docs/trunk/display.html#clipboard","created_at":"2016-05-23T00:43:25Z","updated_at":"2016-05-23T08:38:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7d87ae3753a99941ab53333903d825f428dc21c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/billyquith/GWork/pulls/22/commits","review_comments_url":"https://api.github.com/repos/billyquith/GWork/pulls/22/comments","review_comment_url":"https://api.github.com/repos/billyquith/GWork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/billyquith/GWork/issues/22/comments","statuses_url":"https://api.github.com/repos/billyquith/GWork/statuses/d5dc1467a4a8dea0ab7d5678a9a18bb8cc2ccb8d","head":{"label":"Grant1219:gwork","ref":"gwork","sha":"d5dc1467a4a8dea0ab7d5678a9a18bb8cc2ccb8d","user":{"login":"Grant1219","id":847833,"avatar_url":"https://avatars.githubusercontent.com/u/847833?v=3","gravatar_id":"","url":"https://api.github.com/users/Grant1219","html_url":"https://github.com/Grant1219","followers_url":"https://api.github.com/users/Grant1219/followers","following_url":"https://api.github.com/users/Grant1219/following{/other_user}","gists_url":"https://api.github.com/users/Grant1219/gists{/gist_id}","starred_url":"https://api.github.com/users/Grant1219/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grant1219/subscriptions","organizations_url":"https://api.github.com/users/Grant1219/orgs","repos_url":"https://api.github.com/users/Grant1219/repos","events_url":"https://api.github.com/users/Grant1219/events{/privacy}","received_events_url":"https://api.github.com/users/Grant1219/received_events","type":"User","site_admin":false},"repo":{"id":59439858,"name":"GWork","full_name":"Grant1219/GWork","owner":{"login":"Grant1219","id":847833,"avatar_url":"https://avatars.githubusercontent.com/u/847833?v=3","gravatar_id":"","url":"https://api.github.com/users/Grant1219","html_url":"https://github.com/Grant1219","followers_url":"https://api.github.com/users/Grant1219/followers","following_url":"https://api.github.com/users/Grant1219/following{/other_user}","gists_url":"https://api.github.com/users/Grant1219/gists{/gist_id}","starred_url":"https://api.github.com/users/Grant1219/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grant1219/subscriptions","organizations_url":"https://api.github.com/users/Grant1219/orgs","repos_url":"https://api.github.com/users/Grant1219/repos","events_url":"https://api.github.com/users/Grant1219/events{/privacy}","received_events_url":"https://api.github.com/users/Grant1219/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Grant1219/GWork","description":"Lightweight skinnable embeddable GUI with useful widget collection. Fork of GWEN.","fork":true,"url":"https://api.github.com/repos/Grant1219/GWork","forks_url":"https://api.github.com/repos/Grant1219/GWork/forks","keys_url":"https://api.github.com/repos/Grant1219/GWork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Grant1219/GWork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Grant1219/GWork/teams","hooks_url":"https://api.github.com/repos/Grant1219/GWork/hooks","issue_events_url":"https://api.github.com/repos/Grant1219/GWork/issues/events{/number}","events_url":"https://api.github.com/repos/Grant1219/GWork/events","assignees_url":"https://api.github.com/repos/Grant1219/GWork/assignees{/user}","branches_url":"https://api.github.com/repos/Grant1219/GWork/branches{/branch}","tags_url":"https://api.github.com/repos/Grant1219/GWork/tags","blobs_url":"https://api.github.com/repos/Grant1219/GWork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Grant1219/GWork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Grant1219/GWork/git/refs{/sha}","trees_url":"https://api.github.com/repos/Grant1219/GWork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Grant1219/GWork/statuses/{sha}","languages_url":"https://api.github.com/repos/Grant1219/GWork/languages","stargazers_url":"https://api.github.com/repos/Grant1219/GWork/stargazers","contributors_url":"https://api.github.com/repos/Grant1219/GWork/contributors","subscribers_url":"https://api.github.com/repos/Grant1219/GWork/subscribers","subscription_url":"https://api.github.com/repos/Grant1219/GWork/subscription","commits_url":"https://api.github.com/repos/Grant1219/GWork/commits{/sha}","git_commits_url":"https://api.github.com/repos/Grant1219/GWork/git/commits{/sha}","comments_url":"https://api.github.com/repos/Grant1219/GWork/comments{/number}","issue_comment_url":"https://api.github.com/repos/Grant1219/GWork/issues/comments{/number}","contents_url":"https://api.github.com/repos/Grant1219/GWork/contents/{+path}","compare_url":"https://api.github.com/repos/Grant1219/GWork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Grant1219/GWork/merges","archive_url":"https://api.github.com/repos/Grant1219/GWork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Grant1219/GWork/downloads","issues_url":"https://api.github.com/repos/Grant1219/GWork/issues{/number}","pulls_url":"https://api.github.com/repos/Grant1219/GWork/pulls{/number}","milestones_url":"https://api.github.com/repos/Grant1219/GWork/milestones{/number}","notifications_url":"https://api.github.com/repos/Grant1219/GWork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Grant1219/GWork/labels{/name}","releases_url":"https://api.github.com/repos/Grant1219/GWork/releases{/id}","deployments_url":"https://api.github.com/repos/Grant1219/GWork/deployments","created_at":"2016-05-22T23:49:03Z","updated_at":"2016-05-22T23:49:04Z","pushed_at":"2016-05-23T00:38:01Z","git_url":"git://github.com/Grant1219/GWork.git","ssh_url":"git@github.com:Grant1219/GWork.git","clone_url":"https://github.com/Grant1219/GWork.git","svn_url":"https://github.com/Grant1219/GWork","homepage":"http://chinbilly.blogspot.co.uk/search/label/gwork","size":4678,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"gwork"}},"base":{"label":"billyquith:gwork","ref":"gwork","sha":"1032dc38d78e1781f34a18a7346de8647ea7b159","user":{"login":"billyquith","id":1754471,"avatar_url":"https://avatars.githubusercontent.com/u/1754471?v=3","gravatar_id":"","url":"https://api.github.com/users/billyquith","html_url":"https://github.com/billyquith","followers_url":"https://api.github.com/users/billyquith/followers","following_url":"https://api.github.com/users/billyquith/following{/other_user}","gists_url":"https://api.github.com/users/billyquith/gists{/gist_id}","starred_url":"https://api.github.com/users/billyquith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyquith/subscriptions","organizations_url":"https://api.github.com/users/billyquith/orgs","repos_url":"https://api.github.com/users/billyquith/repos","events_url":"https://api.github.com/users/billyquith/events{/privacy}","received_events_url":"https://api.github.com/users/billyquith/received_events","type":"User","site_admin":false},"repo":{"id":7449996,"name":"GWork","full_name":"billyquith/GWork","owner":{"login":"billyquith","id":1754471,"avatar_url":"https://avatars.githubusercontent.com/u/1754471?v=3","gravatar_id":"","url":"https://api.github.com/users/billyquith","html_url":"https://github.com/billyquith","followers_url":"https://api.github.com/users/billyquith/followers","following_url":"https://api.github.com/users/billyquith/following{/other_user}","gists_url":"https://api.github.com/users/billyquith/gists{/gist_id}","starred_url":"https://api.github.com/users/billyquith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyquith/subscriptions","organizations_url":"https://api.github.com/users/billyquith/orgs","repos_url":"https://api.github.com/users/billyquith/repos","events_url":"https://api.github.com/users/billyquith/events{/privacy}","received_events_url":"https://api.github.com/users/billyquith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/billyquith/GWork","description":"Lightweight skinnable embeddable GUI with useful widget collection. Fork of GWEN.","fork":false,"url":"https://api.github.com/repos/billyquith/GWork","forks_url":"https://api.github.com/repos/billyquith/GWork/forks","keys_url":"https://api.github.com/repos/billyquith/GWork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/billyquith/GWork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/billyquith/GWork/teams","hooks_url":"https://api.github.com/repos/billyquith/GWork/hooks","issue_events_url":"https://api.github.com/repos/billyquith/GWork/issues/events{/number}","events_url":"https://api.github.com/repos/billyquith/GWork/events","assignees_url":"https://api.github.com/repos/billyquith/GWork/assignees{/user}","branches_url":"https://api.github.com/repos/billyquith/GWork/branches{/branch}","tags_url":"https://api.github.com/repos/billyquith/GWork/tags","blobs_url":"https://api.github.com/repos/billyquith/GWork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/billyquith/GWork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/billyquith/GWork/git/refs{/sha}","trees_url":"https://api.github.com/repos/billyquith/GWork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/billyquith/GWork/statuses/{sha}","languages_url":"https://api.github.com/repos/billyquith/GWork/languages","stargazers_url":"https://api.github.com/repos/billyquith/GWork/stargazers","contributors_url":"https://api.github.com/repos/billyquith/GWork/contributors","subscribers_url":"https://api.github.com/repos/billyquith/GWork/subscribers","subscription_url":"https://api.github.com/repos/billyquith/GWork/subscription","commits_url":"https://api.github.com/repos/billyquith/GWork/commits{/sha}","git_commits_url":"https://api.github.com/repos/billyquith/GWork/git/commits{/sha}","comments_url":"https://api.github.com/repos/billyquith/GWork/comments{/number}","issue_comment_url":"https://api.github.com/repos/billyquith/GWork/issues/comments{/number}","contents_url":"https://api.github.com/repos/billyquith/GWork/contents/{+path}","compare_url":"https://api.github.com/repos/billyquith/GWork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/billyquith/GWork/merges","archive_url":"https://api.github.com/repos/billyquith/GWork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/billyquith/GWork/downloads","issues_url":"https://api.github.com/repos/billyquith/GWork/issues{/number}","pulls_url":"https://api.github.com/repos/billyquith/GWork/pulls{/number}","milestones_url":"https://api.github.com/repos/billyquith/GWork/milestones{/number}","notifications_url":"https://api.github.com/repos/billyquith/GWork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/billyquith/GWork/labels{/name}","releases_url":"https://api.github.com/repos/billyquith/GWork/releases{/id}","deployments_url":"https://api.github.com/repos/billyquith/GWork/deployments","created_at":"2013-01-05T01:20:46Z","updated_at":"2016-05-20T02:26:33Z","pushed_at":"2016-05-23T00:43:26Z","git_url":"git://github.com/billyquith/GWork.git","ssh_url":"git@github.com:billyquith/GWork.git","clone_url":"https://github.com/billyquith/GWork.git","svn_url":"https://github.com/billyquith/GWork","homepage":"http://chinbilly.blogspot.co.uk/search/label/gwork","size":4777,"stargazers_count":18,"watchers_count":18,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":11,"forks":4,"open_issues":11,"watchers":18,"default_branch":"gwork"}},"_links":{"self":{"href":"https://api.github.com/repos/billyquith/GWork/pulls/22"},"html":{"href":"https://github.com/billyquith/GWork/pull/22"},"issue":{"href":"https://api.github.com/repos/billyquith/GWork/issues/22"},"comments":{"href":"https://api.github.com/repos/billyquith/GWork/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/billyquith/GWork/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/billyquith/GWork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/billyquith/GWork/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/billyquith/GWork/statuses/d5dc1467a4a8dea0ab7d5678a9a18bb8cc2ccb8d"}}}}
{"actor":{"display_login":"billyquith"}}