Here is a clean up for gam_listener.c. There was one buglet: gam_connection_request calls gam_back_subscription and then gam_listener_remove_subscription. The former calls the backend _remove_subscription functions which all also call gam_listener_remove_subscription. The backend shouldn't worry about the listener. There are no regression in the test suite using the dnotify backend.
Attachment:
gam-listen.diff
Description: Binary data