move CloseAllDialogs signal and associated method from ArdourDialog to ARDOUR_UI, and make ArdourWindow obey it too

This commit is contained in:
Paul Davis 2013-05-02 21:13:36 -04:00
parent 00f94a04cc
commit 6fd66bd467
5 changed files with 13 additions and 9 deletions

View file

@ -23,6 +23,7 @@
#include <gtkmm2ext/doi.h>
#include "ardour_window.h"
#include "ardour_ui.h"
#include "keyboard.h"
using namespace std;
@ -83,8 +84,12 @@ ArdourWindow::init ()
(a) utility & dialog windows are considered to be part of the same level
(b) they will float above normal windows without any particular effort
(c) present()-ing them will make a utility float over a dialog or
vice versa.
*/
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourWindow::hide));
}