{"action":"created","comment":{"url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/comments/44630289","id":44630289,"diff_hunk":"@@ -1182,6 +1182,22 @@ murrine_style_draw_box (DRAW_ARGS)\n \n \t\tmurrine_set_widget_parameters (widget, style, state_type, &params);\n \n+\t\tif (murrine_style->trough_use_child_bg && widget->parent && MRN_IS_SCROLLED_WINDOW (widget->parent)) {\n+\t\t\tGdkColor *gcolor = NULL;\n+\t\t\tGtkWidget *child  = gtk_bin_get_child ((GtkBin*) widget->parent);","path":"src/murrine_style.c","position":6,"original_position":6,"commit_id":"d3740196adcdadaa444d0c1292b999a507c60b56","original_commit_id":"d3740196adcdadaa444d0c1292b999a507c60b56","user":{"login":"sevoku","id":951587,"avatar_url":"https://avatars.githubusercontent.com/u/951587?v=3","gravatar_id":"","url":"https://api.github.com/users/sevoku","html_url":"https://github.com/sevoku","followers_url":"https://api.github.com/users/sevoku/followers","following_url":"https://api.github.com/users/sevoku/following{/other_user}","gists_url":"https://api.github.com/users/sevoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sevoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevoku/subscriptions","organizations_url":"https://api.github.com/users/sevoku/orgs","repos_url":"https://api.github.com/users/sevoku/repos","events_url":"https://api.github.com/users/sevoku/events{/privacy}","received_events_url":"https://api.github.com/users/sevoku/received_events","type":"User","site_admin":false},"body":"> Can you explain what's happening here? Wouldn't `gtk_bin_get_child (widget->parent)` just return `widget`?\r\n\r\nSorry, I misunderstood your question. `widget` is a Scrollbar inside a ScrolledWindow and `widget->parent` is the actual container with the scrolled child inside. I hope its clearer now :)","created_at":"2015-11-12T08:13:39Z","updated_at":"2015-11-12T08:13:39Z","html_url":"https://github.com/mono/xamarin-gtk-theme/pull/4#discussion_r44630289","pull_request_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/comments/44630289"},"html":{"href":"https://github.com/mono/xamarin-gtk-theme/pull/4#discussion_r44630289"},"pull_request":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4","id":50156375,"html_url":"https://github.com/mono/xamarin-gtk-theme/pull/4","diff_url":"https://github.com/mono/xamarin-gtk-theme/pull/4.diff","patch_url":"https://github.com/mono/xamarin-gtk-theme/pull/4.patch","issue_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues/4","number":4,"state":"closed","locked":false,"title":"Draw ScrollBar background using child background color","user":{"login":"sevoku","id":951587,"avatar_url":"https://avatars.githubusercontent.com/u/951587?v=3","gravatar_id":"","url":"https://api.github.com/users/sevoku","html_url":"https://github.com/sevoku","followers_url":"https://api.github.com/users/sevoku/followers","following_url":"https://api.github.com/users/sevoku/following{/other_user}","gists_url":"https://api.github.com/users/sevoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sevoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevoku/subscriptions","organizations_url":"https://api.github.com/users/sevoku/orgs","repos_url":"https://api.github.com/users/sevoku/repos","events_url":"https://api.github.com/users/sevoku/events{/privacy}","received_events_url":"https://api.github.com/users/sevoku/received_events","type":"User","site_admin":false},"body":"The scrollbar trough is drawn using the background color of the content inside a scrolled window. The new behavior can be overridden using `trough_use_child_bg` option, which is enabled by default.\r\n\r\nThe patch includes a special TreeView handling: use `even-row-color` or the base color instead of the (default) bg color.","created_at":"2015-11-09T18:06:38Z","updated_at":"2015-11-12T08:13:39Z","closed_at":"2015-11-10T20:38:59Z","merged_at":null,"merge_commit_sha":"578ab5bf264197447382bb3035423dca29435e7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues/4/comments","statuses_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/statuses/d3740196adcdadaa444d0c1292b999a507c60b56","head":{"label":"sevoku:scrollbars-use-child-bg","ref":"scrollbars-use-child-bg","sha":"d3740196adcdadaa444d0c1292b999a507c60b56","user":{"login":"sevoku","id":951587,"avatar_url":"https://avatars.githubusercontent.com/u/951587?v=3","gravatar_id":"","url":"https://api.github.com/users/sevoku","html_url":"https://github.com/sevoku","followers_url":"https://api.github.com/users/sevoku/followers","following_url":"https://api.github.com/users/sevoku/following{/other_user}","gists_url":"https://api.github.com/users/sevoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sevoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevoku/subscriptions","organizations_url":"https://api.github.com/users/sevoku/orgs","repos_url":"https://api.github.com/users/sevoku/repos","events_url":"https://api.github.com/users/sevoku/events{/privacy}","received_events_url":"https://api.github.com/users/sevoku/received_events","type":"User","site_admin":false},"repo":{"id":45687645,"name":"xamarin-gtk-theme","full_name":"sevoku/xamarin-gtk-theme","owner":{"login":"sevoku","id":951587,"avatar_url":"https://avatars.githubusercontent.com/u/951587?v=3","gravatar_id":"","url":"https://api.github.com/users/sevoku","html_url":"https://github.com/sevoku","followers_url":"https://api.github.com/users/sevoku/followers","following_url":"https://api.github.com/users/sevoku/following{/other_user}","gists_url":"https://api.github.com/users/sevoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sevoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevoku/subscriptions","organizations_url":"https://api.github.com/users/sevoku/orgs","repos_url":"https://api.github.com/users/sevoku/repos","events_url":"https://api.github.com/users/sevoku/events{/privacy}","received_events_url":"https://api.github.com/users/sevoku/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sevoku/xamarin-gtk-theme","description":"","fork":true,"url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme","forks_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/forks","keys_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/teams","hooks_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/hooks","issue_events_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/issues/events{/number}","events_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/events","assignees_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/assignees{/user}","branches_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/branches{/branch}","tags_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/tags","blobs_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/statuses/{sha}","languages_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/languages","stargazers_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/stargazers","contributors_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/contributors","subscribers_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/subscribers","subscription_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/subscription","commits_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/contents/{+path}","compare_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/merges","archive_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/downloads","issues_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/issues{/number}","pulls_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/pulls{/number}","milestones_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/milestones{/number}","notifications_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/labels{/name}","releases_url":"https://api.github.com/repos/sevoku/xamarin-gtk-theme/releases{/id}","created_at":"2015-11-06T14:47:35Z","updated_at":"2015-11-06T14:47:36Z","pushed_at":"2015-11-10T00:03:15Z","git_url":"git://github.com/sevoku/xamarin-gtk-theme.git","ssh_url":"git@github.com:sevoku/xamarin-gtk-theme.git","clone_url":"https://github.com/sevoku/xamarin-gtk-theme.git","svn_url":"https://github.com/sevoku/xamarin-gtk-theme","homepage":null,"size":638,"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":"master"}},"base":{"label":"mono:master","ref":"master","sha":"42b6aa020bc1cca6d56e7734103a672f0fc12b1e","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":8320618,"name":"xamarin-gtk-theme","full_name":"mono/xamarin-gtk-theme","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/xamarin-gtk-theme","description":"","fork":false,"url":"https://api.github.com/repos/mono/xamarin-gtk-theme","forks_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/forks","keys_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/teams","hooks_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/hooks","issue_events_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues/events{/number}","events_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/events","assignees_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/assignees{/user}","branches_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/branches{/branch}","tags_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/tags","blobs_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/languages","stargazers_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/stargazers","contributors_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/contributors","subscribers_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/subscribers","subscription_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/subscription","commits_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/contents/{+path}","compare_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/merges","archive_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/downloads","issues_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues{/number}","pulls_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/labels{/name}","releases_url":"https://api.github.com/repos/mono/xamarin-gtk-theme/releases{/id}","created_at":"2013-02-20T19:42:06Z","updated_at":"2015-10-09T23:35:26Z","pushed_at":"2015-11-10T00:03:16Z","git_url":"git://github.com/mono/xamarin-gtk-theme.git","ssh_url":"git@github.com:mono/xamarin-gtk-theme.git","clone_url":"https://github.com/mono/xamarin-gtk-theme.git","svn_url":"https://github.com/mono/xamarin-gtk-theme","homepage":null,"size":1040,"stargazers_count":16,"watchers_count":16,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4"},"html":{"href":"https://github.com/mono/xamarin-gtk-theme/pull/4"},"issue":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues/4"},"comments":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mono/xamarin-gtk-theme/statuses/d3740196adcdadaa444d0c1292b999a507c60b56"}}}}