-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::enter_notify_event_impl (GdkEventCrossing *ev)
-{
- if (ev->detail != GDK_NOTIFY_INFERIOR) {
- Keyboard::the_keyboard().set_current_dialog (this);
- }
- return FALSE;
-}
-
-gint
-ArdourDialog::leave_notify_event_impl (GdkEventCrossing *ev)
-{
- if (ev->detail != GDK_NOTIFY_INFERIOR) {
- Keyboard::the_keyboard().set_current_dialog (0);
- }
- return FALSE;
-}
-
-gint
-ArdourDialog::unmap_event_impl (GdkEventAny *ev)
-{
- _within_hiding = true;
- Hiding (); /* EMIT_SIGNAL */
- _within_hiding = false;
- return Gtk::Window::unmap_event_impl (ev);
-}
-
-void
-ArdourDialog::wm_close()
-{
- stop (-1);
- ARDOUR_UI::instance()->allow_focus(false);
-}