#include "ardour_ui.h"
-ArdourDialog::ArdourDialog (string title, bool modal)
- : Dialog (title, modal)
+ArdourDialog::ArdourDialog (string title, bool modal, bool use_seperator)
+ : Dialog (title, modal, use_seperator)
{
session = 0;
+
+ set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);
}
ArdourDialog::~ArdourDialog ()
bool
ArdourDialog::on_enter_notify_event (GdkEventCrossing *ev)
{
- if (ev->detail != GDK_NOTIFY_INFERIOR) {
- // GTK2FIX
- //Keyboard::the_keyboard().set_current_dialog (this);
- }
+ Keyboard::the_keyboard().enter_window (ev, this);
return false;
}
bool
ArdourDialog::on_leave_notify_event (GdkEventCrossing *ev)
{
- if (ev->detail != GDK_NOTIFY_INFERIOR) {
- // GTK2FIX
- //Keyboard::the_keyboard().set_current_dialog (0);
- }
+ Keyboard::the_keyboard().leave_window (ev, this);
return false;
}