Add an example how to connect events.

--HG--
branch : stable
merge with stable