diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-03-15 12:34:26 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-03-15 12:41:21 -0400 |
commit | 9a11e3a64d485f2e9ae2bb2dd6409eb1c87f99d0 (patch) | |
tree | 34a6bccac86400f74d58f7f4c9eb12e05771b50f /gtk2_ardour/public_editor.h | |
parent | a8f242f80a980698f82d6ac6692e46e5373893c6 (diff) |
change API for CairoWidget::focus_handler
This functor/closure is responsible for stealing focus from any existing text entry (or whatever else may have focus)
when clicking on a CairoWidget or derived class.
The old implementation just gave focus back to the editor canvas. The new version walks up the widget packing
heirarchy to find a focusable parent (from the CairoWidget for which it is invoked). If no focusable parent
is found, it cancels keyboard focus in the toplevel window containing the CairoWidget
Diffstat (limited to 'gtk2_ardour/public_editor.h')
-rw-r--r-- | gtk2_ardour/public_editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index df6bba3a06..45fbb9ece9 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -319,7 +319,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable { Glib::RefPtr<Gtk::ActionGroup> editor_menu_actions; Glib::RefPtr<Gtk::ActionGroup> _region_actions; - virtual void reset_focus () = 0; + virtual void reset_focus (Gtk::Widget*) = 0; virtual bool canvas_scroll_event (GdkEventScroll* event, bool from_canvas) = 0; virtual bool canvas_control_point_event (GdkEvent* event, ArdourCanvas::Item*, ControlPoint*) = 0; |