summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_ed.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-19 02:36:30 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-19 02:36:30 +0000
commit82cd0093d6051545d9581d4b25a5c8779711e479 (patch)
treea7cad675f142916ab3169cca3e218be8f821d9fb /gtk2_ardour/ardour_ui_ed.cc
parent05283a63398fd7a563480a76802e6b2c2ad2e404 (diff)
add a signal so that if the Big Clock is closed, the edit window can grab focus back (may not be correct - should really capture close/delete signal; tweak size of audio clocks so that there is less dead space at the RHS, helps scroll wheel events to always do something
git-svn-id: svn://localhost/ardour2/branches/3.0@10700 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_ed.cc')
-rw-r--r--gtk2_ardour/ardour_ui_ed.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc
index 28e6e60fa7..6295400e32 100644
--- a/gtk2_ardour/ardour_ui_ed.cc
+++ b/gtk2_ardour/ardour_ui_ed.cc
@@ -631,6 +631,13 @@ ARDOUR_UI::use_menubar_as_top_menubar ()
}
void
+ARDOUR_UI::big_clock_catch_focus ()
+{
+ cerr << "catch BC focus\n";
+ PublicEditor::instance().reset_focus ();
+}
+
+void
ARDOUR_UI::setup_clock ()
{
ARDOUR_UI::Clock.connect (sigc::mem_fun (big_clock, &AudioClock::set));
@@ -647,6 +654,8 @@ ARDOUR_UI::setup_clock ()
big_clock_window->get()->signal_key_press_event().connect (sigc::bind (sigc::ptr_fun (relay_key_press), big_clock_window->get()), false);
big_clock_window->get()->signal_size_allocate().connect (sigc::mem_fun (*this, &ARDOUR_UI::big_clock_size_allocate));
+ big_clock->DropFocus.connect (sigc::mem_fun (*this, &ARDOUR_UI::big_clock_catch_focus));
+
manage_window (*big_clock_window->get());
}