mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
strip keyboard.cc of noxious focus handling stuff, and cleanup
git-svn-id: svn://localhost/trunk/ardour2@106 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bac3c6bc0f
commit
fb45ffea71
40 changed files with 395 additions and 939 deletions
|
|
@ -130,9 +130,6 @@ ExportDialog::ExportDialog(PublicEditor& e, AudioRegion* r)
|
|||
file_selector = 0;
|
||||
spec.running = false;
|
||||
|
||||
file_entry.signal_focus_in_event().connect (sigc::ptr_fun (ARDOUR_UI::generic_focus_in_event));
|
||||
file_entry.signal_focus_out_event().connect (sigc::ptr_fun (ARDOUR_UI::generic_focus_out_event));
|
||||
|
||||
file_entry.set_name ("ExportFileNameEntry");
|
||||
|
||||
master_list = ListStore::create (exp_cols);
|
||||
|
|
@ -1268,19 +1265,11 @@ ExportDialog::initiate_browse ()
|
|||
|
||||
file_selector->get_cancel_button()->signal_clicked().connect (bind (mem_fun(*this, &ExportDialog::finish_browse), -1));
|
||||
file_selector->get_ok_button()->signal_clicked().connect (bind (mem_fun(*this, &ExportDialog::finish_browse), 1));
|
||||
file_selector->signal_map_event().connect (bind (mem_fun(*this, &ExportDialog::change_focus_policy), true));
|
||||
file_selector->signal_unmap_event().connect (bind (mem_fun(*this, &ExportDialog::change_focus_policy), false));
|
||||
}
|
||||
file_selector->show_all ();
|
||||
}
|
||||
|
||||
gint
|
||||
ExportDialog::change_focus_policy (GdkEventAny *ev, bool yn)
|
||||
{
|
||||
Keyboard::the_keyboard().allow_focus (yn);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
ExportDialog::finish_browse (int status)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue