How would I make a button that called a verb with the id of the window the button is in as an argument? The id is not set in the code, because these are cloned windows.
If that isn't possible. Then perhaps anyway on-hide can be set for windows besides the main one?

What I am trying to do is have an icon_state be changed when a window is closed.
In response to Asielen
I think it is possible, give it time for a response, it may not be, but i think it might be.