diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-20 17:11:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-20 17:12:08 +0100 |
commit | d06de26a4fd828b6a0a9da8718e3b0c829a4d162 (patch) | |
tree | 4dedb0ad6a118e0d60aeee611652bb1180d14a8c /gtk2_ardour/shuttle_control.h | |
parent | 3294b82e259085997f6e2f0d361cbb3ef4763545 (diff) |
Towards a consistent render() API.
This fixes an -Woverloaded-virtual ambiguity introduced in b5e613d45
void render (cairo_t*, cairo_rectagle*)
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*)
ArdourCanvas prefers cairomm and CairoWidget itself uses Cairo::Context,
this improves overall API consistency.
Diffstat (limited to 'gtk2_ardour/shuttle_control.h')
-rw-r--r-- | gtk2_ardour/shuttle_control.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/shuttle_control.h b/gtk2_ardour/shuttle_control.h index 62a55ab846..f7d3bd3601 100644 --- a/gtk2_ardour/shuttle_control.h +++ b/gtk2_ardour/shuttle_control.h @@ -93,7 +93,7 @@ protected: bool on_scroll_event (GdkEventScroll*); bool on_motion_notify_event(GdkEventMotion*); - void render (cairo_t *, cairo_rectangle_t*); + void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*); void on_size_allocate (Gtk::Allocation&); bool on_query_tooltip (int, int, bool, const Glib::RefPtr<Gtk::Tooltip>&); |