From 05283a63398fd7a563480a76802e6b2c2ad2e404 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Nov 2011 00:56:35 +0000 Subject: Only use ArdourDialog (and thus Gtk::Dialog) for actual dialogs. Fixes #4364. I havn't fully tested every single dialog and window (heck, I don't even know how to get at half of them), and there may be some packing niggles, but this is the bulk of the work. The Gnome 3 kiddies can close their dialogs now, anyway :) git-svn-id: svn://localhost/ardour2/branches/3.0@10699 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_insert_ui.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk2_ardour/port_insert_ui.cc') diff --git a/gtk2_ardour/port_insert_ui.cc b/gtk2_ardour/port_insert_ui.cc index 8379d1a4ed..4e9a3b1c1e 100644 --- a/gtk2_ardour/port_insert_ui.cc +++ b/gtk2_ardour/port_insert_ui.cc @@ -176,6 +176,12 @@ PortInsertWindow::PortInsertWindow (ARDOUR::Session* sess, boost::shared_ptrpack_start (_portinsertui); + Gtk::Button* cancel_but = add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); + Gtk::Button* ok_but = add_button (Gtk::Stock::OK, Gtk::RESPONSE_OK); + + cancel_but->signal_clicked().connect (sigc::mem_fun (*this, &PortInsertWindow::cancel)); + ok_but->signal_clicked().connect (sigc::mem_fun (*this, &PortInsertWindow::accept)); + signal_delete_event().connect (sigc::mem_fun (*this, &PortInsertWindow::wm_delete), false); pi->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&PortInsertWindow::plugin_going_away, this), gui_context()); -- cgit v1.2.3