diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-21 11:02:15 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-21 13:02:08 +0000 |
| commit | 5c0d72139f0baf3463c6dcb939b58f8e6cb92610 (patch) | |
| tree | 85da8ab0767a9a65184617d67b931262339867f4 /src/widgets/gradient-image.cpp | |
| parent | Move global functions into SPPrintContext methods. (diff) | |
| download | inkscape-5c0d72139f0baf3463c6dcb939b58f8e6cb92610.tar.gz inkscape-5c0d72139f0baf3463c6dcb939b58f8e6cb92610.zip | |
Move global functions into SPGradient methods.
Diffstat (limited to 'src/widgets/gradient-image.cpp')
| -rw-r--r-- | src/widgets/gradient-image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
