From 5c0d72139f0baf3463c6dcb939b58f8e6cb92610 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 21 Jun 2018 13:02:15 +0200 Subject: Move global functions into SPGradient methods. --- src/widgets/gradient-image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/widgets/gradient-image.cpp') diff --git a/src/widgets/gradient-image.cpp b/src/widgets/gradient-image.cpp index aae0cc063..1dfc11795 100644 --- a/src/widgets/gradient-image.cpp +++ b/src/widgets/gradient-image.cpp @@ -113,7 +113,7 @@ static gboolean sp_gradient_image_draw(GtkWidget *widget, cairo_t *ct) cairo_pattern_destroy(check); if (gr) { - cairo_pattern_t *p = sp_gradient_create_preview_pattern(gr, allocation.width); + cairo_pattern_t *p = gr->create_preview_pattern(allocation.width); cairo_set_source(ct, p); cairo_paint(ct); cairo_pattern_destroy(p); @@ -144,7 +144,7 @@ sp_gradient_to_pixbuf (SPGradient *gr, int width, int height) cairo_pattern_destroy(check); if (gr) { - cairo_pattern_t *p = sp_gradient_create_preview_pattern(gr, width); + cairo_pattern_t *p = gr->create_preview_pattern(width); cairo_set_source(ct, p); cairo_paint(ct); cairo_pattern_destroy(p); @@ -171,7 +171,7 @@ sp_gradient_to_pixbuf_ref (SPGradient *gr, int width, int height) cairo_pattern_destroy(check); if (gr) { - cairo_pattern_t *p = sp_gradient_create_preview_pattern(gr, width); + cairo_pattern_t *p = gr->create_preview_pattern(width); cairo_set_source(ct, p); cairo_paint(ct); cairo_pattern_destroy(p); -- cgit v1.2.3