summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_spacer.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/ardour_spacer.h')
-rw-r--r--gtk2_ardour/ardour_spacer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/ardour_spacer.h b/gtk2_ardour/ardour_spacer.h
index b2fdd56a34..28d2f1c378 100644
--- a/gtk2_ardour/ardour_spacer.h
+++ b/gtk2_ardour/ardour_spacer.h
@@ -27,12 +27,12 @@ public:
ArdourVSpacer (float r = 0.75f) : CairoWidget (), ratio (r) {}
protected:
- void render (cairo_t* cr, cairo_rectangle_t* r) {
+ void render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t* r) {
float h = r->height * ratio;
float t = .5f * (r->height - h);
- cairo_rectangle (cr, 0, t, 1, h);
- cairo_set_source_rgb (cr, 0, 0, 0);
- cairo_fill (cr);
+ ctx->rectangle (0, t, 1, h);
+ ctx->set_source_rgb (0, 0, 0);
+ ctx->fill ();
}
void on_size_request (Gtk::Requisition* req) {