summaryrefslogtreecommitdiff
path: root/mate-panel/panel-background.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-background.c')
-rw-r--r--mate-panel/panel-background.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 29e963ae..1dce2f8b 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -1328,7 +1328,7 @@ panel_background_make_string (PanelBackground *background,
#endif
#if GTK_CHECK_VERSION (3, 0, 0)
- if (cairo_pattern_get_surface (background->composited_pattern, &surface))
+ if (cairo_pattern_get_surface (background->composited_pattern, &surface) != CAIRO_STATUS_SUCCESS)
return NULL;
if (cairo_surface_get_type (surface) != CAIRO_SURFACE_TYPE_XLIB)