summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_dialog.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-18 21:03:21 +0000
committerDavid Robillard <d@drobilla.net>2011-11-18 21:03:21 +0000
commitcd4e803f60ef122b8b643478d43a7f1a9c46ae43 (patch)
treea0c6ed2710a22cea43269616c18a4e6f3037c4d9 /gtk2_ardour/ardour_dialog.cc
parentd0b4621035be8855076cf3d61c356dbb16ad4971 (diff)
Clean up ArdourDialog.
Remove undefined static ArdourDialog::close_all_current_dialogs. Remove pointless ArdourDialog::on_key_press_event. Defer to Gtk::Dialog::on_[enter|leave]_notify_event. I'm not sure exactly what these currently do, but not calling it doesn't seem like a good idea. Trim include tree ever so slightly. git-svn-id: svn://localhost/ardour2/branches/3.0@10690 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_dialog.cc')
-rw-r--r--gtk2_ardour/ardour_dialog.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk2_ardour/ardour_dialog.cc b/gtk2_ardour/ardour_dialog.cc
index cd95666b16..278433c7ef 100644
--- a/gtk2_ardour/ardour_dialog.cc
+++ b/gtk2_ardour/ardour_dialog.cc
@@ -56,14 +56,14 @@ bool
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
@@ -94,9 +94,3 @@ ArdourDialog::init ()
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);
-}