Add a missing setOnCloseListener and a new setIconfied method.

Keep track of the currently iconified state as well, if the app
wants to know.
2 files changed