Improve behavior of overwrite_file_dialog.

- Make overwrite file dialogs transient.
- Cancelling the overwrite dialog doesn't close initial dialog.
This commit is contained in:
André Nusser 2015-11-01 21:00:05 +01:00 committed by Paul Davis
parent e8a832f03f
commit 6ccffbaf09
12 changed files with 180 additions and 110 deletions

View file

@ -929,9 +929,9 @@ ARDOUR_UI_UTILS::windows_overlap (Gtk::Window *a, Gtk::Window *b)
}
bool
ARDOUR_UI_UTILS::overwrite_file_dialog (string title, string text)
ARDOUR_UI_UTILS::overwrite_file_dialog (Gtk::Window& parent, string title, string text)
{
ArdourDialog dialog (title, true);
ArdourDialog dialog (parent, title, true);
Label label (text);
dialog.get_vbox()->pack_start (label, true, true);