From bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Mar 2012 22:27:16 +0000 Subject: Preliminary work towards native LV2 UI. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4074 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/App.cpp') diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 620aceb4..ad70a7f9 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -317,14 +317,17 @@ App::show_about() * @return true iff the application quit. */ bool -App::quit(Gtk::Window& dialog_parent) +App::quit(Gtk::Window* dialog_parent) { bool quit = true; if (_world->local_engine()) { - Gtk::MessageDialog d(dialog_parent, + Gtk::MessageDialog d( "The engine is running in this process. Quitting will terminate Ingen." "\n\n" "Are you sure you want to quit?", true, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_NONE, true); + if (dialog_parent) { + d.set_transient_for(*dialog_parent); + } d.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); d.add_button(Gtk::Stock::QUIT, Gtk::RESPONSE_CLOSE); quit = (d.run() == Gtk::RESPONSE_CLOSE); -- cgit v1.2.1