Merge: app.nit: propagate events (such as a button press) to the parents of the control
authorJean Privat <jean@pryen.org>
Fri, 24 Jun 2016 19:18:47 +0000 (15:18 -0400)
committerJean Privat <jean@pryen.org>
Fri, 24 Jun 2016 19:18:47 +0000 (15:18 -0400)
commitfe73e35e5f50cff5a4d922586c4ed30125dc7905
treef8d6bad72d48542449726a19349be32311af42c9
parentc8c51b9d03f4fda7d500b917231020fd5fbb9326
parent1a067c47aab261edd5c9cb9df210c5576319824d
Merge: app.nit: propagate events (such as a button press) to the parents of the control

UI events, such as a button press or a check box toggle, were only sent to the observers of a control, and the control itself. For this reason, every button was watched by the window or some other container.

Propagating the events to the parents (direct and indirect) reaches the window and all of its containers. This allows for more modular code and components, and it removes the need for manually declaring the window as an observer.

Pull-Request: #2199
Reviewed-by: Jean Privat <jean@pryen.org>