-ArdourDialog::ArdourDialog (string name)
- : Gtk::Window (GTK_WINDOW_TOPLEVEL),
- KeyboardTarget (*this, name)
-{
- session = 0;
- kbd_input = false;
- running = false;
- _run_status = 0;
- _within_hiding = false;
- hide_on_stop = true;
-}
-
-ArdourDialog::~ArdourDialog ()
-{
-}
-
-gint
-ArdourDialog::on_enter_notify_event (GdkEventCrossing *ev)
-{
- if (ev->detail != GDK_NOTIFY_INFERIOR) {
- Keyboard::the_keyboard().set_current_dialog (this);
- }
- return FALSE;
-}
-
-gint
-ArdourDialog::on_leave_notify_event (GdkEventCrossing *ev)
-{
- if (ev->detail != GDK_NOTIFY_INFERIOR) {
- Keyboard::the_keyboard().set_current_dialog (0);
- }
- return FALSE;
-}
-
-gint
-ArdourDialog:on_unmap (GdkEventAny *ev)
-{
- _within_hiding = true;
- Hiding (); /* EMIT_SIGNAL */
- _within_hiding = false;
- return Gtk::Window::on_unmap (ev);
-}
-
-void
-ArdourDialog::wm_close()
-{
- stop (-1);
- ARDOUR_UI::instance()->allow_focus(false);
-}