app: make the LayerAddMaskDialog struct private
Instead, provide a custom GimpAddMaskCallback, connect to "response" internally and call the callback. Takes clutter out of layers-commands.c. Also attach the dialog to the layer so we don't show multiple add mask dialogs. Should do the same to all dialogs with public structs, the custom callback approach keep things more encapsulated.
Showing with 164 additions and 115 deletions