use CoreSelection for track selection
[ardour.git] / gtk2_ardour / ardour_button.h
index 1ad6306ae1a8b71bb222ba138091e42124f18fd7..edccfd209fd659aa0a35d9cb03b5c8e192823b34 100644 (file)
@@ -127,7 +127,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        float char_avg_pixel_width() { if (_char_pixel_width < 1) recalc_char_pixel_geometry() ; return _char_avg_pixel_width; }
 
        protected:
-       void render (cairo_t *, cairo_rectangle_t *);
+       void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
        void on_size_request (Gtk::Requisition* req);
        void on_size_allocate (Gtk::Allocation&);
        void on_style_changed (const Glib::RefPtr<Gtk::Style>&);
@@ -139,6 +139,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
        bool on_focus_in_event (GdkEventFocus*);
        bool on_focus_out_event (GdkEventFocus*);
        bool on_key_release_event (GdkEventKey *);
+       bool on_key_press_event (GdkEventKey *);
 
        void controllable_changed ();
        PBD::ScopedConnection watch_connection;