{"action":"created","comment":{"url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments/225309429","pull_request_review_id":164884603,"id":225309429,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTMwOTQyOQ==","diff_hunk":"@@ -112,6 +112,50 @@ var ClubhouseNotificationSource = new Lang.Class({\n     },\n });\n \n+var ClubhouseButton = new Lang.Class({\n+    Name: 'ClubhouseButton',\n+    Extends: St.Button,\n+\n+    _init: function(clubhouseProxy) {\n+        this.parent();\n+        this._clubhouseProxy = clubhouseProxy;\n+\n+        this.add_style_class_name('clubhouse-shell-button');\n+\n+        this._icon_size = 64\n+        let icon = new St.Icon({icon_name: 'user-home-symbolic',\n+                                icon_size: this._icon_size});\n+        this.add_actor(icon);\n+        this.reposition();\n+\n+        Main.overview.connect('shown', () => {\n+            this.updateVisibility();\n+        });\n+        Main.overview.connect('hidden', () => {\n+            this.updateVisibility();\n+        });\n+        Main.sessionMode.connect('updated', () => {\n+            this.updateVisibility();\n+        });\n+    },\n+\n+    reposition: function() {\n+        let monitor = Main.layoutManager.primaryMonitor;\n+        if (!monitor)\n+            return;\n+\n+        this.x = monitor.width - Math.floor(this._icon_size / 2.0);\n+        this.y = Math.floor(monitor.height / 2.0) - Math.floor(this.height / 2.0);","path":"js/ui/components/clubhouse.js","position":66,"original_position":37,"commit_id":"c8d1ce4a4bd089542ee1b2a21cf58a7b74ba7668","original_commit_id":"c8d1ce4a4bd089542ee1b2a21cf58a7b74ba7668","user":{"login":"cosimoc","id":13906,"node_id":"MDQ6VXNlcjEzOTA2","avatar_url":"https://avatars1.githubusercontent.com/u/13906?v=4","gravatar_id":"","url":"https://api.github.com/users/cosimoc","html_url":"https://github.com/cosimoc","followers_url":"https://api.github.com/users/cosimoc/followers","following_url":"https://api.github.com/users/cosimoc/following{/other_user}","gists_url":"https://api.github.com/users/cosimoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cosimoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosimoc/subscriptions","organizations_url":"https://api.github.com/users/cosimoc/orgs","repos_url":"https://api.github.com/users/cosimoc/repos","events_url":"https://api.github.com/users/cosimoc/events{/privacy}","received_events_url":"https://api.github.com/users/cosimoc/received_events","type":"User","site_admin":false},"body":"It would be simpler to write this as `Math.floor((monitor.height - this.height) / 2.0)`","created_at":"2018-10-15T20:42:13Z","updated_at":"2018-10-15T20:50:44Z","html_url":"https://github.com/endlessm/gnome-shell/pull/314#discussion_r225309429","pull_request_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments/225309429"},"html":{"href":"https://github.com/endlessm/gnome-shell/pull/314#discussion_r225309429"},"pull_request":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314"}}},"pull_request":{"url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314","id":223003649,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDAzNjQ5","html_url":"https://github.com/endlessm/gnome-shell/pull/314","diff_url":"https://github.com/endlessm/gnome-shell/pull/314.diff","patch_url":"https://github.com/endlessm/gnome-shell/pull/314.patch","issue_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/314","number":314,"state":"open","locked":false,"title":"T24053","user":{"login":"joaquimrocha","id":1029635,"node_id":"MDQ6VXNlcjEwMjk2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1029635?v=4","gravatar_id":"","url":"https://api.github.com/users/joaquimrocha","html_url":"https://github.com/joaquimrocha","followers_url":"https://api.github.com/users/joaquimrocha/followers","following_url":"https://api.github.com/users/joaquimrocha/following{/other_user}","gists_url":"https://api.github.com/users/joaquimrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/joaquimrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaquimrocha/subscriptions","organizations_url":"https://api.github.com/users/joaquimrocha/orgs","repos_url":"https://api.github.com/users/joaquimrocha/repos","events_url":"https://api.github.com/users/joaquimrocha/events{/privacy}","received_events_url":"https://api.github.com/users/joaquimrocha/received_events","type":"User","site_admin":false},"body":"https://phabricator.endlessm.com/T24053","created_at":"2018-10-15T18:40:47Z","updated_at":"2018-10-15T20:50:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41b8ef4b4ce29b60d55661d12dee4c5711de88c1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"GeorgesStavracas","id":3518204,"node_id":"MDQ6VXNlcjM1MTgyMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3518204?v=4","gravatar_id":"","url":"https://api.github.com/users/GeorgesStavracas","html_url":"https://github.com/GeorgesStavracas","followers_url":"https://api.github.com/users/GeorgesStavracas/followers","following_url":"https://api.github.com/users/GeorgesStavracas/following{/other_user}","gists_url":"https://api.github.com/users/GeorgesStavracas/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgesStavracas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgesStavracas/subscriptions","organizations_url":"https://api.github.com/users/GeorgesStavracas/orgs","repos_url":"https://api.github.com/users/GeorgesStavracas/repos","events_url":"https://api.github.com/users/GeorgesStavracas/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgesStavracas/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314/commits","review_comments_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314/comments","review_comment_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/314/comments","statuses_url":"https://api.github.com/repos/endlessm/gnome-shell/statuses/c8d1ce4a4bd089542ee1b2a21cf58a7b74ba7668","head":{"label":"endlessm:T24053","ref":"T24053","sha":"c8d1ce4a4bd089542ee1b2a21cf58a7b74ba7668","user":{"login":"endlessm","id":1930958,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MzA5NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"repo":{"id":84589501,"node_id":"MDEwOlJlcG9zaXRvcnk4NDU4OTUwMQ==","name":"gnome-shell","full_name":"endlessm/gnome-shell","private":false,"owner":{"login":"endlessm","id":1930958,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MzA5NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/endlessm/gnome-shell","description":"Fork of https://git.gnome.org/browse/gnome-shell","fork":false,"url":"https://api.github.com/repos/endlessm/gnome-shell","forks_url":"https://api.github.com/repos/endlessm/gnome-shell/forks","keys_url":"https://api.github.com/repos/endlessm/gnome-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endlessm/gnome-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endlessm/gnome-shell/teams","hooks_url":"https://api.github.com/repos/endlessm/gnome-shell/hooks","issue_events_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/events{/number}","events_url":"https://api.github.com/repos/endlessm/gnome-shell/events","assignees_url":"https://api.github.com/repos/endlessm/gnome-shell/assignees{/user}","branches_url":"https://api.github.com/repos/endlessm/gnome-shell/branches{/branch}","tags_url":"https://api.github.com/repos/endlessm/gnome-shell/tags","blobs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endlessm/gnome-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/endlessm/gnome-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endlessm/gnome-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/endlessm/gnome-shell/languages","stargazers_url":"https://api.github.com/repos/endlessm/gnome-shell/stargazers","contributors_url":"https://api.github.com/repos/endlessm/gnome-shell/contributors","subscribers_url":"https://api.github.com/repos/endlessm/gnome-shell/subscribers","subscription_url":"https://api.github.com/repos/endlessm/gnome-shell/subscription","commits_url":"https://api.github.com/repos/endlessm/gnome-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/endlessm/gnome-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/endlessm/gnome-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/endlessm/gnome-shell/contents/{+path}","compare_url":"https://api.github.com/repos/endlessm/gnome-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endlessm/gnome-shell/merges","archive_url":"https://api.github.com/repos/endlessm/gnome-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endlessm/gnome-shell/downloads","issues_url":"https://api.github.com/repos/endlessm/gnome-shell/issues{/number}","pulls_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/endlessm/gnome-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/endlessm/gnome-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endlessm/gnome-shell/labels{/name}","releases_url":"https://api.github.com/repos/endlessm/gnome-shell/releases{/id}","deployments_url":"https://api.github.com/repos/endlessm/gnome-shell/deployments","created_at":"2017-03-10T18:30:50Z","updated_at":"2018-10-15T19:16:30Z","pushed_at":"2018-10-15T19:16:31Z","git_url":"git://github.com/endlessm/gnome-shell.git","ssh_url":"git@github.com:endlessm/gnome-shell.git","clone_url":"https://github.com/endlessm/gnome-shell.git","svn_url":"https://github.com/endlessm/gnome-shell","homepage":null,"size":27237,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":5,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"endlessm:master","ref":"master","sha":"1f39a08ba96c5e48ee9d63bf69737e5bb2a0ae33","user":{"login":"endlessm","id":1930958,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MzA5NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"repo":{"id":84589501,"node_id":"MDEwOlJlcG9zaXRvcnk4NDU4OTUwMQ==","name":"gnome-shell","full_name":"endlessm/gnome-shell","private":false,"owner":{"login":"endlessm","id":1930958,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MzA5NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/endlessm/gnome-shell","description":"Fork of https://git.gnome.org/browse/gnome-shell","fork":false,"url":"https://api.github.com/repos/endlessm/gnome-shell","forks_url":"https://api.github.com/repos/endlessm/gnome-shell/forks","keys_url":"https://api.github.com/repos/endlessm/gnome-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endlessm/gnome-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endlessm/gnome-shell/teams","hooks_url":"https://api.github.com/repos/endlessm/gnome-shell/hooks","issue_events_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/events{/number}","events_url":"https://api.github.com/repos/endlessm/gnome-shell/events","assignees_url":"https://api.github.com/repos/endlessm/gnome-shell/assignees{/user}","branches_url":"https://api.github.com/repos/endlessm/gnome-shell/branches{/branch}","tags_url":"https://api.github.com/repos/endlessm/gnome-shell/tags","blobs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endlessm/gnome-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/endlessm/gnome-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endlessm/gnome-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/endlessm/gnome-shell/languages","stargazers_url":"https://api.github.com/repos/endlessm/gnome-shell/stargazers","contributors_url":"https://api.github.com/repos/endlessm/gnome-shell/contributors","subscribers_url":"https://api.github.com/repos/endlessm/gnome-shell/subscribers","subscription_url":"https://api.github.com/repos/endlessm/gnome-shell/subscription","commits_url":"https://api.github.com/repos/endlessm/gnome-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/endlessm/gnome-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/endlessm/gnome-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/endlessm/gnome-shell/contents/{+path}","compare_url":"https://api.github.com/repos/endlessm/gnome-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endlessm/gnome-shell/merges","archive_url":"https://api.github.com/repos/endlessm/gnome-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endlessm/gnome-shell/downloads","issues_url":"https://api.github.com/repos/endlessm/gnome-shell/issues{/number}","pulls_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/endlessm/gnome-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/endlessm/gnome-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endlessm/gnome-shell/labels{/name}","releases_url":"https://api.github.com/repos/endlessm/gnome-shell/releases{/id}","deployments_url":"https://api.github.com/repos/endlessm/gnome-shell/deployments","created_at":"2017-03-10T18:30:50Z","updated_at":"2018-10-15T19:16:30Z","pushed_at":"2018-10-15T19:16:31Z","git_url":"git://github.com/endlessm/gnome-shell.git","ssh_url":"git@github.com:endlessm/gnome-shell.git","clone_url":"https://github.com/endlessm/gnome-shell.git","svn_url":"https://github.com/endlessm/gnome-shell","homepage":null,"size":27237,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":5,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314"},"html":{"href":"https://github.com/endlessm/gnome-shell/pull/314"},"issue":{"href":"https://api.github.com/repos/endlessm/gnome-shell/issues/314"},"comments":{"href":"https://api.github.com/repos/endlessm/gnome-shell/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/endlessm/gnome-shell/statuses/c8d1ce4a4bd089542ee1b2a21cf58a7b74ba7668"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cosimoc"}}