Instead of manually doing it everywhere, just call set_object (NULL) from the selection_changed handler. Fix all the set_object() functions to deal with NULL.
This gives a more complete picture.
No need for the extra subdirectory, and the name should match the module name.