summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-image.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-06-21 18:18:15 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-06-21 18:18:15 +0000
commit74c2ed472c8e5b7070e9702fcf749bb19dadac99 (patch)
treefd617c1a35ab8f2b8add246f95ef00eac857f0b2 /src/widgets/gradient-image.cpp
parentMerge branch 'transf_mat_3x4' of gitlab.com:linkmauve/inkscape (diff)
parentMove global functions into SPImage methods. (diff)
downloadinkscape-74c2ed472c8e5b7070e9702fcf749bb19dadac99.tar.gz
inkscape-74c2ed472c8e5b7070e9702fcf749bb19dadac99.zip
Merge branch 'sp_print' of gitlab.com:linkmauve/inkscape
Diffstat (limited to 'src/widgets/gradient-image.cpp')
-rw-r--r--src/widgets/gradient-image.cpp6
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);