summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-09-22 21:45:30 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-09-22 21:45:30 -0600
commit9c0beeb7591302747eee6e28c448314313f8d54a (patch)
tree47bda1b5cc13dc440baa39fb63d994bfc22dde60 /gtk2_ardour/engine_dialog.h
parent80692dd36bda822962728a3b8705ec72d2f220bc (diff)
fix problem with ArdourDialog::on_delete_event() not being called when appropriate during app startup
The dialog is run using gtk_dialog_run() which uses on_response() to deal with delete/close events unlike a regular top level event loop. Probably even better would be run run the dialog from the top level event loop, but this is a bit complex
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r--gtk2_ardour/engine_dialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h
index a31adc7baf..bd6bf9acde 100644
--- a/gtk2_ardour/engine_dialog.h
+++ b/gtk2_ardour/engine_dialog.h
@@ -353,6 +353,7 @@ private:
void on_switch_page (GtkNotebookPage*, guint page_num);
bool on_delete_event (GdkEventAny*);
+ void on_response (int);
void engine_running ();
void engine_stopped ();