{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/10883","repository_url":"https://api.github.com/repos/xbmc/xbmc","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/10883/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/10883/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/10883/events","html_url":"https://github.com/xbmc/xbmc/pull/10883","id":187632714,"number":10883,"title":"[gui] allow implicit container referencing for non-media windows","user":{"login":"phil65","id":110931,"avatar_url":"https://avatars.githubusercontent.com/u/110931?v=3","gravatar_id":"","url":"https://api.github.com/users/phil65","html_url":"https://github.com/phil65","followers_url":"https://api.github.com/users/phil65/followers","following_url":"https://api.github.com/users/phil65/following{/other_user}","gists_url":"https://api.github.com/users/phil65/gists{/gist_id}","starred_url":"https://api.github.com/users/phil65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil65/subscriptions","organizations_url":"https://api.github.com/users/phil65/orgs","repos_url":"https://api.github.com/users/phil65/repos","events_url":"https://api.github.com/users/phil65/events{/privacy}","received_events_url":"https://api.github.com/users/phil65/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-07T06:13:11Z","updated_at":"2016-11-07T06:23:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/10883","html_url":"https://github.com/xbmc/xbmc/pull/10883","diff_url":"https://github.com/xbmc/xbmc/pull/10883.diff","patch_url":"https://github.com/xbmc/xbmc/pull/10883.patch"},"body":"At the moment implicit referencing of containers only works in MediaWindows. This PR also allows implicit referencing for non-media windows by choosing the actual focused container. That way common constructs like \r\n```\r\n<value condition=\"!String.IsEmpty(Container(5400).ListItem.Art(fanart)) + Control.HasFocus(5400)\">$INFO[Container(5400).ListItem.Art(fanart)]</value>\r\n<value condition=\"!String.IsEmpty(Container(6100).ListItem.Art(fanart)) + Control.HasFocus(6100)\">$INFO[Container(6100).ListItem.Art(fanart)]</value>\r\n<value condition=\"!String.IsEmpty(Container(6200).ListItem.Art(fanart)) + Control.HasFocus(6200)\">$INFO[Container(6200).ListItem.Art(fanart)]</value>\r\n...\r\n```\r\ncan get reduced to\r\n```\r\n<value condition=\"!String.IsEmpty(Container.ListItem.Art(fanart))\">$INFO[Container.ListItem.Art(fanart)]</value>\r\n```\r\n\r\n@ronie @BigNoid @HitcherUK for opinions.\r\n@xhaggi for review\t\t\t"},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/258756306","html_url":"https://github.com/xbmc/xbmc/pull/10883#issuecomment-258756306","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/10883","id":258756306,"user":{"login":"BigNoid","id":447067,"avatar_url":"https://avatars.githubusercontent.com/u/447067?v=3","gravatar_id":"","url":"https://api.github.com/users/BigNoid","html_url":"https://github.com/BigNoid","followers_url":"https://api.github.com/users/BigNoid/followers","following_url":"https://api.github.com/users/BigNoid/following{/other_user}","gists_url":"https://api.github.com/users/BigNoid/gists{/gist_id}","starred_url":"https://api.github.com/users/BigNoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigNoid/subscriptions","organizations_url":"https://api.github.com/users/BigNoid/orgs","repos_url":"https://api.github.com/users/BigNoid/repos","events_url":"https://api.github.com/users/BigNoid/events{/privacy}","received_events_url":"https://api.github.com/users/BigNoid/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T06:23:40Z","updated_at":"2016-11-07T06:23:40Z","body":"Nice one. That will save a lot of skin code. "}}
{"actor":{"display_login":"BigNoid"}}