From 67b6012f3111afb3d90a5e9bb60bc0f3e0e6c520 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 4 Jan 2016 19:54:34 +0300 Subject: background: explicitly check for CAIRO_STATUS_SUCCESS return value --- mate-panel/panel-background.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1