summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/desktop-widget.cpp2
-rw-r--r--src/widgets/gradient-image.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index e70578e90..d0b6af9a0 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -1796,7 +1796,7 @@ bool SPDesktopWidget::onFocusInEvent(GdkEventFocus*)
std::vector<SPObject *> imageList = (desktop->doc())->getResourceList("image");
for (std::vector<SPObject *>::const_iterator it = imageList.begin(); it != imageList.end(); ++it) {
SPImage* image = SP_IMAGE(*it);
- sp_image_refresh_if_outdated( image );
+ image->refresh_if_outdated();
}
}
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);