mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
move CloseAllDialogs signal and associated method from ArdourDialog to ARDOUR_UI, and make ArdourWindow obey it too
This commit is contained in:
parent
00f94a04cc
commit
6fd66bd467
5 changed files with 13 additions and 9 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <gtkmm2ext/doi.h>
|
||||
|
||||
#include "ardour_dialog.h"
|
||||
#include "ardour_ui.h"
|
||||
#include "keyboard.h"
|
||||
#include "splash.h"
|
||||
|
||||
|
|
@ -30,8 +31,6 @@ using namespace std;
|
|||
using namespace Gtk;
|
||||
using namespace Gtkmm2ext;
|
||||
|
||||
sigc::signal<void> ArdourDialog::CloseAllDialogs;
|
||||
|
||||
ArdourDialog::ArdourDialog (string title, bool modal, bool use_seperator)
|
||||
: Dialog (title, modal, use_seperator)
|
||||
, _splash_pushed (false)
|
||||
|
|
@ -98,9 +97,7 @@ ArdourDialog::on_show ()
|
|||
void
|
||||
ArdourDialog::init ()
|
||||
{
|
||||
set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);
|
||||
set_border_width (10);
|
||||
CloseAllDialogs.connect (
|
||||
sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response),
|
||||
RESPONSE_CANCEL));
|
||||
// set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
|
||||
ARDOUR_UI::CloseAllDialogs.connect (sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response), RESPONSE_CANCEL));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue