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:
Paul Davis 2005-11-23 04:13:32 +00:00
parent bac3c6bc0f
commit fb45ffea71
40 changed files with 395 additions and 939 deletions

View file

@ -261,17 +261,6 @@ PannerUI::~PannerUI ()
}
gint
PannerUI::entry_focus_event (GdkEventFocus* ev)
{
if (ev->in) {
ARDOUR_UI::instance()->allow_focus (true);
} else {
ARDOUR_UI::instance()->allow_focus (false);
}
return TRUE;
}
void
PannerUI::panner_changed ()
{
@ -337,8 +326,6 @@ PannerUI::setup_pan ()
bc->set_name ("PanSlider");
bc->set_shadow_type (Gtk::SHADOW_NONE);
bc->set_style (BarController::Line);
bc->get_spin_button().signal_focus_in_event().connect (mem_fun(*this, &PannerUI::entry_focus_event));
bc->get_spin_button().signal_focus_out_event().connect (mem_fun(*this, &PannerUI::entry_focus_event));
bc->StartGesture.connect (bind (mem_fun (_io, &IO::start_pan_touch), (uint32_t) asz));
bc->StopGesture.connect (bind (mem_fun (_io, &IO::end_pan_touch), (uint32_t) asz));