How can I keep track of objects being removed from the selection ?

[ I have been digging through the desktop.cpp/inkscape.cpp/selection.cpp files and couldn't find any noteworthy construct that let me do it. ]

Also, if I bubbled up signal emission, how can that be achieved ? 
If widget A contains B which contains C. So I want "released" signal of A to be invoked when "released" signal of C is invoked. How can I do that ?

-- 
Arshdeep Singh
Third Year, Computer Engineering
Delhi Technological University
Ph: +91-9654115614
https://sites.google.com/site/adsingh1729/home