#include "ardour_dialog.h"
#include "keyboard.h"
-#include "ardour_ui.h"
#include "splash.h"
-#include "public_editor.h"
-#include "utils.h"
using namespace std;
-using namespace sigc;
using namespace Gtk;
using namespace Gtkmm2ext;
ArdourDialog::on_enter_notify_event (GdkEventCrossing *ev)
{
Keyboard::the_keyboard().enter_window (ev, this);
- return false;
+ return Dialog::on_enter_notify_event (ev);
}
bool
ArdourDialog::on_leave_notify_event (GdkEventCrossing *ev)
{
Keyboard::the_keyboard().leave_window (ev, this);
- return false;
+ return Dialog::on_leave_notify_event (ev);
}
void
void
ArdourDialog::init ()
{
- session = 0;
set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);
set_border_width (10);
- CloseAllDialogs.connect (sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response), RESPONSE_CANCEL));
-}
-
-bool
-ArdourDialog::on_key_press_event (GdkEventKey* key)
-{
- return Gtk::Dialog::on_key_press_event (key);
+ CloseAllDialogs.connect (
+ sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response),
+ RESPONSE_CANCEL));
}