{"action":"created","issue":{"url":"https://api.github.com/repos/pybee/toga/issues/538","repository_url":"https://api.github.com/repos/pybee/toga","labels_url":"https://api.github.com/repos/pybee/toga/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/pybee/toga/issues/538/comments","events_url":"https://api.github.com/repos/pybee/toga/issues/538/events","html_url":"https://github.com/pybee/toga/pull/538","id":330099046,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMTkwODYz","number":538,"title":"Fix CTRL+q on GTK","user":{"login":"davidroeca","id":6155705,"node_id":"MDQ6VXNlcjYxNTU3MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/6155705?v=4","gravatar_id":"","url":"https://api.github.com/users/davidroeca","html_url":"https://github.com/davidroeca","followers_url":"https://api.github.com/users/davidroeca/followers","following_url":"https://api.github.com/users/davidroeca/following{/other_user}","gists_url":"https://api.github.com/users/davidroeca/gists{/gist_id}","starred_url":"https://api.github.com/users/davidroeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidroeca/subscriptions","organizations_url":"https://api.github.com/users/davidroeca/orgs","repos_url":"https://api.github.com/users/davidroeca/repos","events_url":"https://api.github.com/users/davidroeca/events{/privacy}","received_events_url":"https://api.github.com/users/davidroeca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-07T02:56:18Z","updated_at":"2018-06-11T04:46:50Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/pybee/toga/pulls/538","html_url":"https://github.com/pybee/toga/pull/538","diff_url":"https://github.com/pybee/toga/pull/538.diff","patch_url":"https://github.com/pybee/toga/pull/538.patch"},"body":"CTRL+q in GTK was raising the following error: `TypeError: _handler() takes 1 positional argument but 2 were given`. This boiled down to passing a wrapped_handler to the `activate` action. It seems that the activate action is called with a `data` positional argument rather than a named argument. Because of this, I defined an alternative wrapper used for this signal to handle this quirk of forwarding the additional argument. \r\n\r\nSimilarly, since `Command.action`s are already wrapped with `wrapped_handler` in [command.py](https://github.com/pybee/toga/tree/59fbc518b18617235b1ff913f02f7e374244ee82/src/core/toga/command.py#L46-L49), I removed the redundant wrapping.\r\n\r\n## PR Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n- [ ] All new features have been tested\r\n- [ ] All new features have been documented\r\n- [x] I have read the **CONTRIBUTING.md** file\r\n- [x] I will abide by the code of conduct\r\n"},"comment":{"url":"https://api.github.com/repos/pybee/toga/issues/comments/396121008","html_url":"https://github.com/pybee/toga/pull/538#issuecomment-396121008","issue_url":"https://api.github.com/repos/pybee/toga/issues/538","id":396121008,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjEyMTAwOA==","user":{"login":"davidroeca","id":6155705,"node_id":"MDQ6VXNlcjYxNTU3MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/6155705?v=4","gravatar_id":"","url":"https://api.github.com/users/davidroeca","html_url":"https://github.com/davidroeca","followers_url":"https://api.github.com/users/davidroeca/followers","following_url":"https://api.github.com/users/davidroeca/following{/other_user}","gists_url":"https://api.github.com/users/davidroeca/gists{/gist_id}","starred_url":"https://api.github.com/users/davidroeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidroeca/subscriptions","organizations_url":"https://api.github.com/users/davidroeca/orgs","repos_url":"https://api.github.com/users/davidroeca/repos","events_url":"https://api.github.com/users/davidroeca/events{/privacy}","received_events_url":"https://api.github.com/users/davidroeca/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T04:46:49Z","updated_at":"2018-06-11T04:46:49Z","author_association":"CONTRIBUTOR","body":"@danyeaw created a new PR for that https://github.com/pybee/toga/pull/544. If that gets merged, we can close this one"}}
{"actor":{"display_login":"davidroeca"}}