summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-16 22:27:16 +0000
committerDavid Robillard <d@drobilla.net>2012-03-16 22:27:16 +0000
commitbc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9 (patch)
treeb42f56620ce85f6207568eadfb901360436c6f74 /src/gui/App.cpp
parent7126f005be3e49818dafe0d2666b6745e09f8aff (diff)
downloadingen-bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9.tar.gz
ingen-bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9.tar.bz2
ingen-bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9.zip
Preliminary work towards native LV2 UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4074 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp7
1 files changed, 5 insertions, 2 deletions
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);